855 | | QString aboutString = QMenuBar::tr("About").toLower(); |
856 | | if (t.startsWith(aboutString) || t.endsWith(aboutString)) { |
857 | | if (t.indexOf(QRegExp(QString::fromLatin1("qt$"), Qt::CaseInsensitive)) == -1) { |
858 | | #ifndef QT_MAC_USE_COCOA |
859 | | ret = kHICommandAbout; |
860 | | #else |
861 | | ret = [loader aboutMenuItem]; |
862 | | #endif |
863 | | } else { |
864 | | #ifndef QT_MAC_USE_COCOA |
865 | | ret = kHICommandAboutQt; |
866 | | #else |
867 | | ret = [loader aboutQtMenuItem]; |
868 | | #endif |
869 | | } |
870 | | } else if (t.startsWith(QMenuBar::tr("Config").toLower()) |
871 | | || t.startsWith(QMenuBar::tr("Preference").toLower()) |
872 | | || t.startsWith(QMenuBar::tr("Options").toLower()) |
873 | | || t.startsWith(QMenuBar::tr("Setting").toLower()) |
874 | | || t.startsWith(QMenuBar::tr("Setup").toLower())) { |
875 | | #ifndef QT_MAC_USE_COCOA |
876 | | ret = kHICommandPreferences; |
877 | | #else |
878 | | ret = [loader preferencesMenuItem]; |
879 | | #endif |
880 | | } else if (t.startsWith(QMenuBar::tr("Quit").toLower()) |
| 855 | if (t.startsWith(QMenuBar::tr("Quit").toLower()) |