void FormatSettingsPopup::buildValueField(int index, TPropertyGroup *props) {
  TIntProperty *prop = (TIntProperty *)(props->getProperty(index));
  assert(prop);

  DVGui::PropertyIntField *v = new DVGui::PropertyIntField(this, prop);
  m_widgets[prop->getName()] = v;

  int row = m_mainLayout->rowCount();
  m_mainLayout->addWidget(new QLabel(prop->getQStringName() + ":", this), row,
                          0, Qt::AlignRight | Qt::AlignVCenter);
  m_mainLayout->addWidget(v, row, 1);
  // get value here - bug loses value if the range doesn't start with 0
  double value = prop->getValue();
  v->setValues(prop->getValue(), prop->getRange().first,
               prop->getRange().second);
  if (prop->getValue() != value) {
    prop->setValue(value);
  }
}
void FormatSettingsPopup::buildValueField(int index, TPropertyGroup *props)
{
	TIntProperty *prop = (TIntProperty *)(props->getProperty(index));
	assert(prop);

	PropertyIntField *v = new PropertyIntField(this, prop);
	m_widgets[prop->getName()] = v;

	int row = m_mainLayout->rowCount();
	m_mainLayout->addWidget(new QLabel(tr(prop->getName().c_str()) + ":", this), row, 0, Qt::AlignRight | Qt::AlignVCenter);
	m_mainLayout->addWidget(v, row, 1);

	v->setValues(prop->getValue(), prop->getRange().first, prop->getRange().second);
}