diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2018-03-14 13:24:10 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2018-03-15 07:50:40 +0000 |
commit | 6d879ab06a95d6b49e5ca4ad0af12024d5d2a988 (patch) | |
tree | 9b10d4c7a7350ee9cc3c82f4847cbcaedbbca4b9 /src/quicktemplates2/qquicktheme_p_p.h | |
parent | 63773fd5363e8954e298e775bba7478d612134ef (diff) |
QQuickTheme: cleanup the API
Task-number: QTBUG-67062
Change-Id: Id2f821bd41b72f7bce9885295e89c322eb3332f4
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquicktheme_p_p.h')
-rw-r--r-- | src/quicktemplates2/qquicktheme_p_p.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquicktheme_p_p.h b/src/quicktemplates2/qquicktheme_p_p.h index b8cdc4aa..88de14ab 100644 --- a/src/quicktemplates2/qquicktheme_p_p.h +++ b/src/quicktemplates2/qquicktheme_p_p.h @@ -54,15 +54,24 @@ QT_BEGIN_NAMESPACE class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickThemePrivate { + Q_DECLARE_PUBLIC(QQuickTheme) + public: static QQuickThemePrivate *get(QQuickTheme *theme) { return theme->d_func(); } + const QFont *resolveThemeFont(QQuickTheme::Font type); + const QPalette *resolveThemePalette(QQuickTheme::Palette type); + static QScopedPointer<QQuickTheme> current; + + bool hasResolvedFonts = false; + bool hasResolvedPalettes = false; QScopedPointer<const QFont> defaultFont; QScopedPointer<const QPalette> defaultPalette; + QQuickTheme *q_ptr = nullptr; }; QT_END_NAMESPACE |