summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-11-14 09:34:38 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-11-14 09:34:38 (GMT)
commit0b90bb86d2ef0b925158a9cf185981eaea1776c2 (patch)
treedad0948b20e5a644e5a653a3251b1fc6514f7f00 /tests
parentbc992fd8381697f57c6abb13b5fa17167d98867a (diff)
parent11a6d868b5613dd7fdbef02198aaf9566fcd1f17 (diff)
downloadQt-0b90bb86d2ef0b925158a9cf185981eaea1776c2.zip
Qt-0b90bb86d2ef0b925158a9cf185981eaea1776c2.tar.gz
Qt-0b90bb86d2ef0b925158a9cf185981eaea1776c2.tar.bz2
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1: Fix for QMessageBox's autotest. Fix for the button size calculation in qmessagebox.cpp
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qmessagebox/tst_qmessagebox.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qmessagebox/tst_qmessagebox.cpp b/tests/auto/qmessagebox/tst_qmessagebox.cpp
index ed085ce..06e242c 100644
--- a/tests/auto/qmessagebox/tst_qmessagebox.cpp
+++ b/tests/auto/qmessagebox/tst_qmessagebox.cpp
@@ -720,7 +720,8 @@ void tst_QMessageBox::detailsButtonText()
QAbstractButton* btn = NULL;
foreach(btn, list) {
if (btn && (btn->inherits("QPushButton"))) {
- if (btn->text() != QMessageBox::tr("OK") && btn->text() != QMessageBox::tr("Show Details...")) {
+ if (btn->text().remove("&") != QMessageBox::tr("OK")
+ && btn->text() != QMessageBox::tr("Show Details...")) {
QFAIL(qPrintable(QString("Unexpected messagebox button text: %1").arg(btn->text())));
}
}