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