mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Menus.cpp: use proper ifdefs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37693 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f450acaefe
commit
7a7676e3fe
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user