aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/platform/qquickplatformfontdialog.cpp
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-08-14 15:45:31 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-08-14 13:59:52 +0000
commit781aae2f348190796475bc28003813a9591678ed (patch)
tree58c1063d32525ffd566876a9483f66d1b9f94cc2 /src/imports/platform/qquickplatformfontdialog.cpp
parentba2f7169656f2b3f6b04f8965b43811ff3cb4bd8 (diff)
Platform dialogs: apply the options
Change-Id: I6bccfebcbb32dcafeea0814d88f7882857a62a85 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/imports/platform/qquickplatformfontdialog.cpp')
-rw-r--r--src/imports/platform/qquickplatformfontdialog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/imports/platform/qquickplatformfontdialog.cpp b/src/imports/platform/qquickplatformfontdialog.cpp
index 3ca4304d..892869a7 100644
--- a/src/imports/platform/qquickplatformfontdialog.cpp
+++ b/src/imports/platform/qquickplatformfontdialog.cpp
@@ -205,9 +205,11 @@ QPlatformDialogHelper *QQuickPlatformFontDialog::createHelper()
return dialog;
}
-void QQuickPlatformFontDialog::applyOptions()
+void QQuickPlatformFontDialog::applyOptions(QPlatformDialogHelper *handle)
{
m_options->setWindowTitle(title());
+ if (QPlatformFontDialogHelper *fontDialog = qobject_cast<QPlatformFontDialogHelper *>(handle))
+ fontDialog->setOptions(m_options);
}
void QQuickPlatformFontDialog::accept()