diff options
author | Joerg Bornemann <joerg.bornemann@trolltech.com> | 2009-08-24 13:50:51 (GMT) |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@trolltech.com> | 2009-08-24 13:52:16 (GMT) |
commit | 2c21acaee645590f907672b6cfc4d84597444418 (patch) | |
tree | 999162b716d2cd3f9f8253fed29181564de1dc5f /src/gui/kernel/qapplication_win.cpp | |
parent | abceeb74b02e54be0f4ab741f3ed07dae4c76578 (diff) | |
download | Qt-2c21acaee645590f907672b6cfc4d84597444418.zip Qt-2c21acaee645590f907672b6cfc4d84597444418.tar.gz Qt-2c21acaee645590f907672b6cfc4d84597444418.tar.bz2 |
Windows compile fix for code that needs WINVER > 0x500
This is premature and is about to change, probably.
Reviewed-by: thierry
Diffstat (limited to 'src/gui/kernel/qapplication_win.cpp')
-rw-r--r-- | src/gui/kernel/qapplication_win.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication_win.cpp b/src/gui/kernel/qapplication_win.cpp index 76a3b1e..b2cde4d 100644 --- a/src/gui/kernel/qapplication_win.cpp +++ b/src/gui/kernel/qapplication_win.cpp @@ -1808,6 +1808,7 @@ LRESULT CALLBACK QtWndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam case APPCOMMAND_VOLUME_UP: key = Qt::Key_VolumeUp; break; +#if defined(WINVER) && WINVER >= 0x0501 // Commands new in Windows XP case APPCOMMAND_HELP: key = Qt::Key_Help; @@ -1821,6 +1822,7 @@ LRESULT CALLBACK QtWndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam case APPCOMMAND_MEDIA_PLAY: key = Qt::Key_MediaPlay; break; +#endif default: break; } |