]> git.lyx.org Git - features.git/commitdiff
Menus.cpp: use proper ifdefs.
authorJürgen Spitzmüller <spitz@lyx.org>
Wed, 16 Feb 2011 15:56:07 +0000 (15:56 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Wed, 16 Feb 2011 15:56:07 +0000 (15:56 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37693 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/Menus.cpp

index 84dc1933123cd8639090017cfabaf15ee38055b4..c25ad978ab83dca0362e0a6fa723cf78ddd5c880 100644 (file)
@@ -1572,7 +1572,7 @@ void Menu::Impl::populate(QMenu & qMenu, MenuDefinition const & menu)
        }
 }
 
-#ifdef Q_WS_WIN && QT_VERSION >= 0x040600
+#if defined(Q_WS_WIN) && (QT_VERSION >= 0x040600)
 class AlwaysMnemonicStyle : public QProxyStyle {
 public:
        int styleHint(StyleHint hint, const QStyleOption *opt = 0, const QWidget *widget = 0,
@@ -1592,7 +1592,7 @@ public:
 Menu::Menu(GuiView * gv, QString const & name, bool top_level, bool keyboard)
 : QMenu(gv), d(new Menu::Impl)
 {
-#ifdef Q_WS_WIN && QT_VERSION >= 0x040600
+#if defined(Q_WS_WIN) && (QT_VERSION >= 0x040600)
        if (keyboard)
                setStyle(new AlwaysMnemonicStyle);
 #else