diff options
author | Liang Qi <liang.qi@theqtcompany.com> | 2015-12-01 12:08:58 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@theqtcompany.com> | 2015-12-01 15:04:20 +0000 |
commit | 209fea864e823323af3cd43456737e08168d4a9d (patch) | |
tree | 9ee0c6e4db703579f6ced97b45a7160f4ed43c7c /src/templates/qquickbutton_p.h | |
parent | 36a40b1edfcb493f108d1efd3fd6e7f48a4a1bad (diff) |
Added defaultFont() for QQuickControl and etc
The map between controls and QPlatformTheme::Font:
* QQuickControl and etc: SystemFont
* QQuickButton: PushButtonFont
* QQuickToolButton: ToolButtonFont
* QQuickCheckBox: CheckBoxFont
* QQuickRadioButton: RadioButtonFont
* QQuickLabel: LabelFont
* QQuickGroupBox: MdiSubWindowTitleFont (tmp)
* QQuickTabButton: DockWidgetTitleFont (tmp)
Change-Id: If8c0239ece673941164fd97f52240ef27d97b950
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/templates/qquickbutton_p.h')
-rw-r--r-- | src/templates/qquickbutton_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/templates/qquickbutton_p.h b/src/templates/qquickbutton_p.h index 7ca0252b..5b9c7df5 100644 --- a/src/templates/qquickbutton_p.h +++ b/src/templates/qquickbutton_p.h @@ -68,6 +68,9 @@ public: Q_SIGNALS: void highlightedChanged(); +protected: + QFont defaultFont() const Q_DECL_OVERRIDE; + private: Q_DISABLE_COPY(QQuickButton) Q_DECLARE_PRIVATE(QQuickButton) |