summaryrefslogtreecommitdiff
path: root/src/dialogs/qquickabstractfontdialog_p.h
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-08-13 16:58:44 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-08-17 08:31:20 +0000
commitefdd81ce80b018b7b5779876e94f1b722af7fb9a (patch)
treee1bf8151431f64f54707157b8f62823374e373bb /src/dialogs/qquickabstractfontdialog_p.h
parent22fab1502f562bccb3c16dde0288aa867e3b094a (diff)
downloadqtquickcontrols-efdd81ce80b018b7b5779876e94f1b722af7fb9a.tar.gz
Fix ColorDialog.color and FontDialog.font update on accept
When using native dialogs, ColorDialog.color was not updated at all, and FontDialog.font was incorrectly following FontDialog.currentFont. Promote the overridden accept() methods to the abstract base classes so the native dialogs get the appropriate property updates on accept the same way compared to the non-native dialogs. Task-number: QTBUG-55298 Change-Id: I9ac8f5ecc60884cd98b58d09ef3dcb4baf47772d Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/dialogs/qquickabstractfontdialog_p.h')
-rw-r--r--src/dialogs/qquickabstractfontdialog_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dialogs/qquickabstractfontdialog_p.h b/src/dialogs/qquickabstractfontdialog_p.h
index 3162be2a..f60c4ddb 100644
--- a/src/dialogs/qquickabstractfontdialog_p.h
+++ b/src/dialogs/qquickabstractfontdialog_p.h
@@ -101,6 +101,9 @@ Q_SIGNALS:
void currentFontChanged();
void selectionAccepted();
+protected Q_SLOTS:
+ virtual void accept();
+
protected:
QPlatformFontDialogHelper *m_dlgHelper;
QSharedPointer<QFontDialogOptions> m_options;