summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dist/changes-5.0.07
-rw-r--r--src/widgets/dialogs/qmessagebox.h4
2 files changed, 8 insertions, 3 deletions
diff --git a/dist/changes-5.0.0 b/dist/changes-5.0.0
index 1ec68fcb0d..96104d9f04 100644
--- a/dist/changes-5.0.0
+++ b/dist/changes-5.0.0
@@ -364,3 +364,10 @@ Qt for Windows CE
construction would not be affected by the QPointer, but now that QPointer
is implemented using QWeakPoiner, constructing the QSharedPointer will
cause an abort().
+
+
+- QMessageBox
+
+ * The static function QMessageBox::question has changed the default argument
+ for buttons. Before the default was to have an Ok button. That is changed
+ to having a yes and a no button.
diff --git a/src/widgets/dialogs/qmessagebox.h b/src/widgets/dialogs/qmessagebox.h
index 4774389a69..c157a9b388 100644
--- a/src/widgets/dialogs/qmessagebox.h
+++ b/src/widgets/dialogs/qmessagebox.h
@@ -191,10 +191,8 @@ public:
static StandardButton information(QWidget *parent, const QString &title,
const QString &text, StandardButtons buttons = Ok,
StandardButton defaultButton = NoButton);
- // ### Qt 5: Replace Ok with Yes|No in question() function.
- // Also consider if Ok == Yes and Cancel == No.
static StandardButton question(QWidget *parent, const QString &title,
- const QString &text, StandardButtons buttons = Ok,
+ const QString &text, StandardButtons buttons = StandardButtons(Yes | No),
StandardButton defaultButton = NoButton);
static StandardButton warning(QWidget *parent, const QString &title,
const QString &text, StandardButtons buttons = Ok,