- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Qt4/Query/VectorQtQuery.cpp
r6e6b90 rc70fb4 29 29 30 30 31 QtDialog::VectorQtQuery::VectorQtQuery( std::string title, bool _check,QBoxLayout *_parent,QtDialog *_dialog) :32 Dialog::VectorQuery( title,_check),31 QtDialog::VectorQtQuery::VectorQtQuery(Parameter<Vector> ¶m, std::string title, bool _check,QBoxLayout *_parent,QtDialog *_dialog) : 32 Dialog::VectorQuery(param, title,_check), 33 33 parent(_parent) 34 34 { 35 if (!param.isSet()) 36 param.set(Vector(0,0,0)); 35 37 mainLayout= new QHBoxLayout(); 36 38 titleLabel = new QLabel(QString(getTitle().c_str())); … … 45 47 coordInputX = new QDoubleSpinBox(); 46 48 coordInputX->setRange(-std::numeric_limits<double>::max(),std::numeric_limits<double>::max()); 49 coordInputX->setValue(param.get()[0]); 47 50 // coordInputX->setRange(0,M.at(i,i)); 48 51 coordInputX->setDecimals(3); … … 50 53 coordInputY = new QDoubleSpinBox(); 51 54 coordInputY->setRange(-std::numeric_limits<double>::max(),std::numeric_limits<double>::max()); 55 coordInputY->setValue(param.get()[1]); 52 56 // coordInputY->setRange(0,M.at(i,i)); 53 57 coordInputY->setDecimals(3); … … 55 59 coordInputZ = new QDoubleSpinBox(); 56 60 coordInputZ->setRange(-std::numeric_limits<double>::max(),std::numeric_limits<double>::max()); 61 coordInputZ->setValue(param.get()[2]); 57 62 // coordInputZ->setRange(0,M.at(i,i)); 58 63 coordInputZ->setDecimals(3); 59 64 coordLayout->addWidget(coordInputZ); 60 pipe = new VectorQtQueryPipe( &(tmp),_dialog,inputBox);65 pipe = new VectorQtQueryPipe(tmp,_dialog,inputBox); 61 66 //pipe->update(coordInput->value()); 62 67 connect(coordInputX,SIGNAL(valueChanged(double)),pipe,SLOT(updateX(double)));
Note:
See TracChangeset
for help on using the changeset viewer.