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