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