From 98e02c4b4ac0f9724924fc9366d76d73c4c7bee1 Mon Sep 17 00:00:00 2001 From: "craig.p.drummond" Date: Fri, 1 Jun 2012 16:26:41 +0000 Subject: [PATCH] Fix order of title/message in Qt dialogs. --- widgets/messagebox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widgets/messagebox.cpp b/widgets/messagebox.cpp index 2680217d3..58d0adbee 100644 --- a/widgets/messagebox.cpp +++ b/widgets/messagebox.cpp @@ -40,9 +40,9 @@ MessageBox::ButtonCode MessageBox::questionYesNoCancel(QWidget *parent, const QS { if (yesText.text.isEmpty() && noText.text.isEmpty()) { return map(isWarning - ? QMessageBox::warning(parent, message, title.isEmpty() ? QObject::tr("Warning") : title, + ? QMessageBox::warning(parent, title.isEmpty() ? QObject::tr("Warning") : title, message, QMessageBox::Yes|QMessageBox::No|(showCancel ? QMessageBox::Cancel : QMessageBox::NoButton)) - : QMessageBox::question(parent, message, title.isEmpty() ? QObject::tr("Question") : title, + : QMessageBox::question(parent, title.isEmpty() ? QObject::tr("Question") : title, message, QMessageBox::Yes|QMessageBox::No|(showCancel ? QMessageBox::Cancel : QMessageBox::NoButton)) ); } else {