diff options
author | Liang Qi <liang.qi@theqtcompany.com> | 2015-12-09 12:22:11 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@theqtcompany.com> | 2015-12-10 19:50:34 +0000 |
commit | 3809315b2658327504f8518db0c0b49a015a71a5 (patch) | |
tree | 8c87f70cb42fae0b7822392046a577ef368345cf /src/imports/controls/material/qquickmaterialtheme.cpp | |
parent | eb500f9cd9756f035b3d74b3a58a1a78e229988d (diff) |
Use TabButtonFont and GroupBoxTitleFont from QPlatformTheme
* QQuickGroupBox: GroupBoxTitleFont
* QQuickTabButton: TabButtonFont
Change-Id: Ib2e58a95c49353536231cc93d28dba075629c59f
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/material/qquickmaterialtheme.cpp')
-rw-r--r-- | src/imports/controls/material/qquickmaterialtheme.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/imports/controls/material/qquickmaterialtheme.cpp b/src/imports/controls/material/qquickmaterialtheme.cpp index ee98c35c..f64205bb 100644 --- a/src/imports/controls/material/qquickmaterialtheme.cpp +++ b/src/imports/controls/material/qquickmaterialtheme.cpp @@ -44,7 +44,7 @@ QQuickMaterialTheme::QQuickMaterialTheme(QPlatformTheme *theme) : QQuickProxyTheme(theme) { systemFont = QFont(QLatin1Literal("Roboto")); - dockWidgetTitleFont = QFont(QLatin1Literal("Roboto"), 10); + tabButtonFont = QFont(QLatin1Literal("Roboto"), 10); } QQuickMaterialTheme::~QQuickMaterialTheme() @@ -54,8 +54,8 @@ QQuickMaterialTheme::~QQuickMaterialTheme() const QFont *QQuickMaterialTheme::font(QPlatformTheme::Font type) const { switch (type) { - case QPlatformTheme::DockWidgetTitleFont: - return &dockWidgetTitleFont; + case QPlatformTheme::TabButtonFont: + return &tabButtonFont; default: return &systemFont; } |