diff options
author | Andy Shaw <andy.shaw@qt.io> | 2020-08-06 13:20:07 +0200 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2020-08-17 10:53:15 +0200 |
commit | 64230bf97c18297f45bd5d7ccf99b510c8a612bd (patch) | |
tree | 8baf4aa3e4e19a7e2c39bad9004d3783a2a448c6 /src/quicktemplates2/qquickpopuppositioner_p_p.h | |
parent | 0ba45442f3f1102af73ec2666e4e5c24ed516331 (diff) |
Get the scale of the popup item when setting the parent item
As there are some styles that will do an transition which animates the
scale then we need to size and position based on the final scale it
will have to avoid a jump after it has finished the transition.
Pick-to: 5.15
Fixes: QTBUG-84488
Change-Id: I4571eb18c921e81de319838ac0e8d3fe3513d438
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickpopuppositioner_p_p.h')
-rw-r--r-- | src/quicktemplates2/qquickpopuppositioner_p_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickpopuppositioner_p_p.h b/src/quicktemplates2/qquickpopuppositioner_p_p.h index 64f57a3f..03a2e2fe 100644 --- a/src/quicktemplates2/qquickpopuppositioner_p_p.h +++ b/src/quicktemplates2/qquickpopuppositioner_p_p.h @@ -79,6 +79,7 @@ protected: bool m_positioning = false; QQuickItem *m_parentItem = nullptr; QQuickPopup *m_popup = nullptr; + qreal m_popupScale = 1.0; }; QT_END_NAMESPACE |