diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-08-14 15:45:31 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-08-14 13:59:52 +0000 |
commit | 781aae2f348190796475bc28003813a9591678ed (patch) | |
tree | 58c1063d32525ffd566876a9483f66d1b9f94cc2 /src/imports/platform/qquickplatformmessagedialog.cpp | |
parent | ba2f7169656f2b3f6b04f8965b43811ff3cb4bd8 (diff) |
Platform dialogs: apply the options
Change-Id: I6bccfebcbb32dcafeea0814d88f7882857a62a85
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/imports/platform/qquickplatformmessagedialog.cpp')
-rw-r--r-- | src/imports/platform/qquickplatformmessagedialog.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/imports/platform/qquickplatformmessagedialog.cpp b/src/imports/platform/qquickplatformmessagedialog.cpp index 2fe4f88f..68ef3553 100644 --- a/src/imports/platform/qquickplatformmessagedialog.cpp +++ b/src/imports/platform/qquickplatformmessagedialog.cpp @@ -375,9 +375,11 @@ QPlatformDialogHelper *QQuickPlatformMessageDialog::createHelper() return dialog; } -void QQuickPlatformMessageDialog::applyOptions() +void QQuickPlatformMessageDialog::applyOptions(QPlatformDialogHelper *handle) { m_options->setWindowTitle(title()); + if (QPlatformMessageDialogHelper *messageDialog = qobject_cast<QPlatformMessageDialogHelper *>(handle)) + messageDialog->setOptions(m_options); } void QQuickPlatformMessageDialog::handleClick(QPlatformDialogHelper::StandardButton button) |