summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/dialogs/qmessagebox/tst_qmessagebox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/widgets/dialogs/qmessagebox/tst_qmessagebox.cpp')
-rw-r--r--tests/auto/widgets/dialogs/qmessagebox/tst_qmessagebox.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/auto/widgets/dialogs/qmessagebox/tst_qmessagebox.cpp b/tests/auto/widgets/dialogs/qmessagebox/tst_qmessagebox.cpp
index 25ffdf63c6..3bf618b679 100644
--- a/tests/auto/widgets/dialogs/qmessagebox/tst_qmessagebox.cpp
+++ b/tests/auto/widgets/dialogs/qmessagebox/tst_qmessagebox.cpp
@@ -122,9 +122,7 @@ private slots:
void detailsText();
void detailsButtonText();
-#ifndef Q_WS_MAC
void shortcut();
-#endif
void staticSourceCompat();
void instanceSourceCompat();
@@ -366,17 +364,17 @@ void tst_QMessageBox::statics()
}
}
-// Shortcuts are not used on Mac OS X.
-#ifndef Q_WS_MAC
void tst_QMessageBox::shortcut()
{
+#ifdef Q_WS_MAC
+ QSKIP("shortcuts are not used on MAC OS X");
+#endif
QMessageBox msgBox;
msgBox.addButton("O&k", QMessageBox::YesRole);
msgBox.addButton("&No", QMessageBox::YesRole);
msgBox.addButton("&Maybe", QMessageBox::YesRole);
QCOMPARE(exec(&msgBox, Qt::Key_M), 2);
}
-#endif
void tst_QMessageBox::about()
{