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