Ignore:
File:
1 edited

Legend:

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

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