From ed9720ffc6b462889e2f501824e9656a6ffde313 Mon Sep 17 00:00:00 2001 From: Nikita Krupenko Date: Thu, 14 Apr 2016 01:08:16 +0300 Subject: Use font from theme for list delegates Change-Id: I48208fb6b5f7df6e1e824d36a256d9b1643cd16d Reviewed-by: J-P Nurmi --- src/quicktemplates2/qquickswitchdelegate.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/quicktemplates2/qquickswitchdelegate.cpp') 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(); -- cgit v1.2.3