Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Qt4/Pipe/VectorQtQueryPipe.cpp

    ra14fe3 rf10b0c  
    2626
    2727
    28 VectorQtQueryPipe::VectorQtQueryPipe(Vector *_content, QtDialog *_dialog, QComboBox *_theBox) :
     28VectorQtQueryPipe::VectorQtQueryPipe(Parameter<Vector> &_content, QtDialog *_dialog, QComboBox *_theBox) :
    2929  content(_content),
    3030  dialog(_dialog),
     
    3636
    3737void VectorQtQueryPipe::updateX(double newDouble) {
    38   (*content)[0] = newDouble;
     38  Vector v = content.get();
     39  v[0] = newDouble;
     40  content.set(v);
    3941  dialog->update();
    4042}
    4143
    4244void VectorQtQueryPipe::updateY(double newDouble) {
    43   (*content)[1] = newDouble;
     45  Vector v = content.get();
     46  v[1] = newDouble;
     47  content.set(v);
    4448  dialog->update();
    4549}
    4650
    4751void VectorQtQueryPipe::updateZ(double newDouble) {
    48   (*content)[2] = newDouble;
     52  Vector v = content.get();
     53  v[2] = newDouble;
     54  content.set(v);
    4955  dialog->update();
    5056}
Note: See TracChangeset for help on using the changeset viewer.