Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Qt4/Query/VectorQtQuery.cpp

    rc70fb4 r6e6b90  
    2929
    3030
    31 QtDialog::VectorQtQuery::VectorQtQuery(Parameter<Vector> &param, std::string title, bool _check,QBoxLayout *_parent,QtDialog *_dialog) :
    32     Dialog::VectorQuery(param, title,_check),
     31QtDialog::VectorQtQuery::VectorQtQuery(std::string title, bool _check,QBoxLayout *_parent,QtDialog *_dialog) :
     32    Dialog::VectorQuery(title,_check),
    3333    parent(_parent)
    3434{
    35   if (!param.isSet())
    36     param.set(Vector(0,0,0));
    3735  mainLayout= new QHBoxLayout();
    3836  titleLabel = new QLabel(QString(getTitle().c_str()));
     
    4745  coordInputX = new QDoubleSpinBox();
    4846  coordInputX->setRange(-std::numeric_limits<double>::max(),std::numeric_limits<double>::max());
    49   coordInputX->setValue(param.get()[0]);
    5047//  coordInputX->setRange(0,M.at(i,i));
    5148  coordInputX->setDecimals(3);
     
    5350  coordInputY = new QDoubleSpinBox();
    5451  coordInputY->setRange(-std::numeric_limits<double>::max(),std::numeric_limits<double>::max());
    55   coordInputY->setValue(param.get()[1]);
    5652//  coordInputY->setRange(0,M.at(i,i));
    5753  coordInputY->setDecimals(3);
     
    5955  coordInputZ = new QDoubleSpinBox();
    6056  coordInputZ->setRange(-std::numeric_limits<double>::max(),std::numeric_limits<double>::max());
    61   coordInputZ->setValue(param.get()[2]);
    6257//  coordInputZ->setRange(0,M.at(i,i));
    6358  coordInputZ->setDecimals(3);
    6459  coordLayout->addWidget(coordInputZ);
    65   pipe = new VectorQtQueryPipe(tmp,_dialog,inputBox);
     60  pipe = new VectorQtQueryPipe(&(tmp),_dialog,inputBox);
    6661  //pipe->update(coordInput->value());
    6762  connect(coordInputX,SIGNAL(valueChanged(double)),pipe,SLOT(updateX(double)));
Note: See TracChangeset for help on using the changeset viewer.