Ignore:
Timestamp:
Jul 17, 2017, 12:28:51 PM (8 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Action_Thermostats, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults
Children:
3bd4a66
Parents:
9346af
git-author:
Frederik Heber <frederik.heber@…> (07/06/17 22:18:13)
git-committer:
Frederik Heber <frederik.heber@…> (07/17/17 12:28:51)
Message:

Query::handle() no longer returns bool but has internal result flag.

  • we use this flag conditionally in setResult(), i.e. if the handle() has failed, then we should not set its result which might overwrite a present default value in the parameter.
  • this fixes the problem with StepWorldTime which has a default value of 1 but which was overwritten with 0 because of the non-conditionally calling of setResult().
  • this required change of "output-types" default parameter to an empty vector. So far, we were just lucky that this actually worked.
  • also StoreSaturatedFragmentAction needed the same change as default values have to be consistent over the specific token.
File:
1 edited

Legend:

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

    r9346af rbf87c2  
    165165  const QString itemtext = nameComboBox->itemText(index);
    166166  temp = itemtext.toStdString();
     167  QtQuery<Vector>::handle();
    167168  dialog->update();
    168169}
     
    170171void QtDialog::VectorQtQuery::onUpdateX(double newDouble) {
    171172  updateVectorString(temp, newDouble, 0);
     173  QtQuery<Vector>::handle();
    172174  dialog->update();
    173175}
     
    175177void QtDialog::VectorQtQuery::onUpdateY(double newDouble) {
    176178  updateVectorString(temp, newDouble, 1);
     179  QtQuery<Vector>::handle();
    177180  dialog->update();
    178181}
     
    180183void QtDialog::VectorQtQuery::onUpdateZ(double newDouble) {
    181184  updateVectorString(temp, newDouble, 2);
     185  QtQuery<Vector>::handle();
    182186  dialog->update();
    183187}
Note: See TracChangeset for help on using the changeset viewer.