diff options
author | Liang Qi <liang.qi@digia.com> | 2014-02-03 06:49:28 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-03 12:18:36 +0100 |
commit | a1df3e8537b7474db08e81bd1f0faebb13caebf4 (patch) | |
tree | 882c6215ccad563f05024c197100679733455021 /src/dialogs/qquickfontdialog_p.h | |
parent | 0bbb32469adb3c49b110e2eb987caba58da80554 (diff) | |
download | qtquickcontrols-a1df3e8537b7474db08e81bd1f0faebb13caebf4.tar.gz |
Add currentFont property to FontDialog.
QFontDialog has this property. This patch effectively means that
the font property will be set when the dialog closes, instead of
whenever the current font in the dialog changes, so pressing cancel
will revert the font to what it was before the dialog was opened.
Align with e73d503b84be12e7bf28491356b459ca309e7c95 in qtdelarative,
the similar change for color dialog.
[ChangeLog][QtQuickControls][FontDialog] Added currentFont property.
Task-number: QTBUG-36574
Change-Id: I4140966543a677d8e654dbaac170a2fe8d3579a1
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Diffstat (limited to 'src/dialogs/qquickfontdialog_p.h')
-rw-r--r-- | src/dialogs/qquickfontdialog_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dialogs/qquickfontdialog_p.h b/src/dialogs/qquickfontdialog_p.h index a8e2d82e..c51e1fd9 100644 --- a/src/dialogs/qquickfontdialog_p.h +++ b/src/dialogs/qquickfontdialog_p.h @@ -67,6 +67,9 @@ public: explicit QQuickFontDialog(QObject *parent = 0); ~QQuickFontDialog(); +protected Q_SLOTS: + virtual void accept(); + protected: virtual QPlatformFontDialogHelper *helper() { return 0; } |