Ignore:
File:
1 edited

Legend:

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

    r955b91 rc70fb4  
    2828
    2929
    30 QtDialog::DoubleQtQuery::DoubleQtQuery(std::string title,QBoxLayout *_parent,QtDialog *_dialog) :
    31     Dialog::DoubleQuery(title),
     30QtDialog::DoubleQtQuery::DoubleQtQuery(Parameter<double> &param, std::string title,QBoxLayout *_parent,QtDialog *_dialog) :
     31    Dialog::DoubleQuery(param, title),
    3232    parent(_parent)
    3333{
     34  if (!param.isSet())
     35    param.set(0.0);
    3436  thisLayout = new QHBoxLayout();
    3537  titleLabel = new QLabel(QString(getTitle().c_str()));
    3638  inputBox = new QDoubleSpinBox();
    37   inputBox->setValue(0);
     39  inputBox->setValue(param.get());
    3840  inputBox->setRange(-std::numeric_limits<double>::max(),std::numeric_limits<double>::max());
    3941  inputBox->setDecimals(3);
     
    4244  thisLayout->addWidget(inputBox);
    4345
    44   pipe = new DoubleQtQueryPipe(&tmp,_dialog);
     46  pipe = new DoubleQtQueryPipe(tmp,_dialog);
    4547  pipe->update(inputBox->value());
    4648  connect(inputBox,SIGNAL(valueChanged(double)),pipe,SLOT(update(double)));
Note: See TracChangeset for help on using the changeset viewer.