aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquicktheme.cpp
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2018-05-16 13:57:00 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2018-05-22 14:20:53 +0000
commit1a3c1a089ff088482c9d093f4fa002e2d47cc103 (patch)
treebc6c399af2fe531de7cc4851df0efe9fc5f4170f /src/quicktemplates2/qquicktheme.cpp
parentf40dc11886e8130bad5771ed80920e6e72dfc09e (diff)
QQuickTheme: rename themeFont() and themePalette()
We don't have the conflicting virtual getters anymore. Change-Id: Ia20bfa0a0b1aa67c35a23270eb0241018f8e0ada Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquicktheme.cpp')
-rw-r--r--src/quicktemplates2/qquicktheme.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/quicktemplates2/qquicktheme.cpp b/src/quicktemplates2/qquicktheme.cpp
index 45c3e81a..b8ced7b9 100644
--- a/src/quicktemplates2/qquicktheme.cpp
+++ b/src/quicktemplates2/qquicktheme.cpp
@@ -129,7 +129,7 @@ QQuickTheme *QQuickTheme::instance()
return QQuickThemePrivate::instance.data();
}
-QFont QQuickTheme::themeFont(Scope scope)
+QFont QQuickTheme::font(Scope scope)
{
const QFont *font = nullptr;
if (QQuickTheme *theme = instance())
@@ -145,12 +145,12 @@ QFont QQuickTheme::themeFont(Scope scope)
}
if (scope != System)
- return themeFont(System);
+ return QQuickTheme::font(System);
return QFont();
}
-QPalette QQuickTheme::themePalette(Scope scope)
+QPalette QQuickTheme::palette(Scope scope)
{
const QPalette *palette = nullptr;
if (QQuickTheme *theme = instance())
@@ -166,7 +166,7 @@ QPalette QQuickTheme::themePalette(Scope scope)
}
if (scope != System)
- return themePalette(System);
+ return QQuickTheme::palette(System);
return QPalette();
}