/// \param outValue an output value of the variable
bool findVariable(const QString& theName, double& outValue) const;
+signals:
+ void textChanged(const QString& theText);
+
protected:
virtual void showEvent(QShowEvent*);
myLabel->setToolTip(aTTip);
aControlLay->addRow(myLabel, mySpinBox);
- connect(mySpinBox, SIGNAL(valueChanged(const QString&)), this, SIGNAL(valuesModified()));
+ // we should listen textChanged signal as valueChanged do not send when text is modified
+ connect(mySpinBox, SIGNAL(textChanged(const QString&)), this, SIGNAL(valuesModified()));
mySpinBox->setValueEnabled(isValueEnabled());
}
myXSpin->setToolTip(tr("X"));
aGroupLay->addWidget(myXSpin, 0, 1);
- connect(myXSpin, SIGNAL(valueChanged(const QString&)), this, SIGNAL(valuesModified()));
+ connect(myXSpin, SIGNAL(textChanged(const QString&)), this, SIGNAL(valuesModified()));
myXSpin->setValueEnabled(isValueEnabled());
}
{
myYSpin->setToolTip(tr("Y"));
aGroupLay->addWidget(myYSpin, 1, 1);
- connect(myYSpin, SIGNAL(valueChanged(const QString&)), this, SIGNAL(valuesModified()));
+ connect(myYSpin, SIGNAL(textChanged(const QString&)), this, SIGNAL(valuesModified()));
myYSpin->setValueEnabled(isValueEnabled());
}
QVBoxLayout* aLayout = new QVBoxLayout(this);