diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-10-26 18:03:35 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@theqtcompany.com> | 2015-10-27 08:46:23 +0000 |
commit | c9e01c96e0010fc30a2ddc913b22d21a9495e01d (patch) | |
tree | b3ab64d38822b94dbca13cb9d90ee276e5f629ea /src/imports/controls/qtlabscontrolsplugin.cpp | |
parent | cc707a981e2ece079bf94c9817e2d42760cae60b (diff) |
Control: fix available size
First of all, don't allow negative available size, because it doesn't
make much sense. Secondly, geometryChanged() was comparing new width
to old height, so availableHeightChanged() was emitted under wrong
conditions. Furthermore, the comparisons should are better done fuzzy
to avoid unnecessary change notifiers.
Change-Id: Ic2bbc106670882b421f79db82d4b47d846e1c4e0
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/qtlabscontrolsplugin.cpp')
0 files changed, 0 insertions, 0 deletions