summaryrefslogtreecommitdiffstats
path: root/src/widgets/dialogs
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2022-10-26 20:12:00 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2022-11-16 15:17:19 +0100
commite5f777638b6a32adc6245bf276af9c887b4c9b0f (patch)
tree49289aa0e60fe30486199e8a778e085f16f6776b /src/widgets/dialogs
parent91170aba0f465f9881483bcb93f319d608528002 (diff)
Plumb QMessageBox::iconPixmap() to QPlatformMessageDialogHelper
For now this plumbs the QPixmap directly, but as a follow up we should teach QMessageBox to deal with QIcons instead, and rejig the plumbing correspondingly. Change-Id: I51dee4240082abf0acb33b6ade553327295a99bd Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/widgets/dialogs')
-rw-r--r--src/widgets/dialogs/qmessagebox.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/dialogs/qmessagebox.cpp b/src/widgets/dialogs/qmessagebox.cpp
index 95aaf45e7c..52a6d9282e 100644
--- a/src/widgets/dialogs/qmessagebox.cpp
+++ b/src/widgets/dialogs/qmessagebox.cpp
@@ -2719,6 +2719,7 @@ void QMessageBoxPrivate::helperPrepareShow(QPlatformDialogHelper *)
options->setDetailedText(q->detailedText());
#endif
options->setIcon(helperIcon(q->icon()));
+ options->setIconPixmap(q->iconPixmap());
options->setStandardButtons(helperStandardButtons(q));
}