Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Qt4/Query/UnsignedIntQtQuery.cpp

    r955b91 rc70fb4  
    2828
    2929
    30 QtDialog::UnsignedIntQtQuery::UnsignedIntQtQuery(std::string _title,QBoxLayout *_parent,QtDialog *_dialog) :
    31     Dialog::UnsignedIntQuery(_title),
     30QtDialog::UnsignedIntQtQuery::UnsignedIntQtQuery(Parameter<unsigned int> &param, std::string _title,QBoxLayout *_parent,QtDialog *_dialog) :
     31    Dialog::UnsignedIntQuery(param, _title),
    3232    parent(_parent)
    3333{
     34  if (!param.isSet())
     35    param.set(0);
    3436  thisLayout = new QHBoxLayout();
    3537  titleLabel = new QLabel(QString(getTitle().c_str()));
    3638  inputBox = new QSpinBox();
    37   inputBox->setValue(0);
     39  inputBox->setValue(param.get());
    3840  parent->addLayout(thisLayout);
    3941  thisLayout->addWidget(titleLabel);
    4042  thisLayout->addWidget(inputBox);
    4143
    42   pipe = new UnsignedIntQtQueryPipe(&tmp,_dialog);
     44  pipe = new UnsignedIntQtQueryPipe(tmp,_dialog);
    4345  pipe->update(inputBox->value());
    4446  connect(inputBox,SIGNAL(valueChanged(unsigned int)),pipe,SLOT(update(unsigned int)));
Note: See TracChangeset for help on using the changeset viewer.