aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickswitchdelegate.cpp
diff options
context:
space:
mode:
authorNikita Krupenko <krnekit@gmail.com>2016-04-14 01:08:16 +0300
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2016-04-14 09:22:46 +0000
commited9720ffc6b462889e2f501824e9656a6ffde313 (patch)
tree91209d14e5442ffe68747ffbf62033f8be5b3c78 /src/quicktemplates2/qquickswitchdelegate.cpp
parente2ee646a3f25f7fe0767d9af2beafe33b31cc07a (diff)
Use font from theme for list delegates
Change-Id: I48208fb6b5f7df6e1e824d36a256d9b1643cd16d Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/quicktemplates2/qquickswitchdelegate.cpp')
-rw-r--r--src/quicktemplates2/qquickswitchdelegate.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickswitchdelegate.cpp b/src/quicktemplates2/qquickswitchdelegate.cpp
index aefe2e6d..286d253b 100644
--- a/src/quicktemplates2/qquickswitchdelegate.cpp
+++ b/src/quicktemplates2/qquickswitchdelegate.cpp
@@ -148,6 +148,11 @@ qreal QQuickSwitchDelegate::visualPosition() const
return d->position;
}
+QFont QQuickSwitchDelegate::defaultFont() const
+{
+ return QQuickControlPrivate::themeFont(QPlatformTheme::ListViewFont);
+}
+
void QQuickSwitchDelegate::mirrorChange()
{
QQuickItemDelegate::mirrorChange();