- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Qt4/Query/DoubleQtQuery.cpp
rc70fb4 r955b91 28 28 29 29 30 QtDialog::DoubleQtQuery::DoubleQtQuery( Parameter<double> ¶m,std::string title,QBoxLayout *_parent,QtDialog *_dialog) :31 Dialog::DoubleQuery( param,title),30 QtDialog::DoubleQtQuery::DoubleQtQuery(std::string title,QBoxLayout *_parent,QtDialog *_dialog) : 31 Dialog::DoubleQuery(title), 32 32 parent(_parent) 33 33 { 34 if (!param.isSet())35 param.set(0.0);36 34 thisLayout = new QHBoxLayout(); 37 35 titleLabel = new QLabel(QString(getTitle().c_str())); 38 36 inputBox = new QDoubleSpinBox(); 39 inputBox->setValue( param.get());37 inputBox->setValue(0); 40 38 inputBox->setRange(-std::numeric_limits<double>::max(),std::numeric_limits<double>::max()); 41 39 inputBox->setDecimals(3); … … 44 42 thisLayout->addWidget(inputBox); 45 43 46 pipe = new DoubleQtQueryPipe( tmp,_dialog);44 pipe = new DoubleQtQueryPipe(&tmp,_dialog); 47 45 pipe->update(inputBox->value()); 48 46 connect(inputBox,SIGNAL(valueChanged(double)),pipe,SLOT(update(double)));
Note:
See TracChangeset
for help on using the changeset viewer.