void symetricConstructors();
void checkMultipleNames();
void checkMultipleCodes();
+#ifndef Q_OS_MAC
void mnemonic_data();
void mnemonic();
+#endif
void toString_data();
void toString();
void toStringFromKeycode_data();
void standardKeys_data();
void standardKeys();
void keyBindings();
+#if !defined (Q_OS_MAC) && !defined (Q_OS_WINCE)
void translated_data();
void translated();
+#endif
void i18nKeys_data();
void i18nKeys();
QCOMPARE(bindings, expected);
}
+#ifndef Q_OS_MAC
void tst_QKeySequence::mnemonic_data()
{
QTest::addColumn<QString>("string");
void tst_QKeySequence::mnemonic()
{
-#ifdef Q_OS_MAC
- QSKIP("mnemonics are not used on Mac OS X");
-#endif
QFETCH(QString, string);
QFETCH(QString, key);
QFETCH(bool, warning);
QCOMPARE(seq, res);
}
+#endif
void tst_QKeySequence::toString_data()
{
QCOMPARE(ks4, ks1);
}
+#if !defined (Q_OS_MAC) && !defined (Q_OS_WINCE)
void tst_QKeySequence::translated_data()
{
qApp->installTranslator(ourTranslator);
{
QFETCH(QString, transKey);
QFETCH(QString, compKey);
-#ifdef Q_OS_MAC
- QSKIP("No need to translate modifiers on Mac OS X");
-#elif defined(Q_OS_WINCE)
- QSKIP("No need to translate modifiers on WinCE");
-#endif
qApp->installTranslator(ourTranslator);
qApp->installTranslator(qtTranslator);
qApp->removeTranslator(ourTranslator);
qApp->removeTranslator(qtTranslator);
}
-
+#endif
void tst_QKeySequence::i18nKeys_data()
{