diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-05-11 12:33:43 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-05-11 11:24:48 +0000 |
commit | 55aef74a8ebd65d2178bd3a2536ca44dcaecd46e (patch) | |
tree | 5213c22897bbe6e7bfa2b95fe2e6247236601f20 /src/quicktemplates2/qquickpopup_p_p.h | |
parent | 8b2e819ab2246d01eb564a52aa08bdf1d55c02c2 (diff) |
QQuickPopup: emit xChanged() and yChanged() when _local_ coords change
Emitting xChanged() and yChanged() when the (scene) geometry of the
internal popup item changes is not sufficient, because QQuickPopup
operates in the parent item's coordinate space. When a popup is pushed
inside the window margins, the local coordinates change, but the global
coordinates don't.
Change-Id: I296f1ecd1d1e882c2ff730a2bf68641bd57cbb4f
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickpopup_p_p.h')
-rw-r--r-- | src/quicktemplates2/qquickpopup_p_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickpopup_p_p.h b/src/quicktemplates2/qquickpopup_p_p.h index 3ff55129..5e4e6c51 100644 --- a/src/quicktemplates2/qquickpopup_p_p.h +++ b/src/quicktemplates2/qquickpopup_p_p.h @@ -192,6 +192,8 @@ public: bool allowHorizontalFlip; qreal x; qreal y; + qreal effectiveX; + qreal effectiveY; qreal margins; qreal topMargin; qreal leftMargin; |