Qt: trigger OnChange event when programatically change value of spin editors.issue #19881

git-svn-id: trunk@33630 -
This commit is contained in:
zeljko 2011-11-19 16:26:50 +00:00
parent 7416247cc3
commit 01ea1658f7

View File

@ -78,10 +78,11 @@ begin
ASpinWidget.setMinimum(ACustomFloatSpinEdit.MinValue);
ASpinWidget.setMaximum(ACustomFloatSpinEdit.MaxValue);
ASpinWidget.setSingleStep(ACustomFloatSpinEdit.Increment);
ASpinWidget.setValue(ACustomFloatSpinEdit.Value);
finally
ASpinWidget.EndUpdate;
end;
// trigger OnChange of spin edits
ASpinWidget.setValue(ACustomFloatSpinEdit.Value);
end;
{------------------------------------------------------------------------------