aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/qquickcontrol_p_p.h
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@theqtcompany.com>2016-02-19 12:37:10 +0100
committerLiang Qi <liang.qi@theqtcompany.com>2016-02-19 13:19:22 +0000
commita9735e783761cc2f98001cb72e6aa37315b1af70 (patch)
treef059a32aed0ac9a7524b473bcb4a9bff62faab6b /src/templates/qquickcontrol_p_p.h
parentced4f86ec71abe19ce6e719c37cfb1f74241ac66 (diff)
Controls: fix locale inheritance for popups
QQuickPopup is a QObject, not a QQuickControl. Then need to make QQuickPopup::popupItem() inherit its locale from QQuickPopup::parentItem(). Task-number: QTBUG-50984 Change-Id: Ie5908f86a154502962d6406dd4067b46cc527de7 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/templates/qquickcontrol_p_p.h')
-rw-r--r--src/templates/qquickcontrol_p_p.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/templates/qquickcontrol_p_p.h b/src/templates/qquickcontrol_p_p.h
index 21f6c1b1..d7821ec7 100644
--- a/src/templates/qquickcontrol_p_p.h
+++ b/src/templates/qquickcontrol_p_p.h
@@ -104,8 +104,7 @@ public:
static QFont themeFont(QPlatformTheme::Font type);
void updateLocale(const QLocale &l, bool e);
static void updateLocaleRecur(QQuickItem *item, const QLocale &l);
-
- QLocale calcLocale() const;
+ static QLocale calcLocale(QQuickItem *);
QFont font;
bool hasTopPadding;