summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwhatsthis.cpp
diff options
context:
space:
mode:
authorminiak <milan.burda@gmail.com>2011-10-06 10:42:17 (GMT)
committerJoerg Bornemann <joerg.bornemann@nokia.com>2011-10-06 10:42:17 (GMT)
commit1ef309e964753105e14a8c223a1b59c0cbd9369b (patch)
treed5167c327bbb4c05b4a5e9023f4e4caf60e663ea /src/gui/kernel/qwhatsthis.cpp
parentd1fa89e1cce4dcc6bf15fc59196be6764fda51d1 (diff)
downloadQt-1ef309e964753105e14a8c223a1b59c0cbd9369b.zip
Qt-1ef309e964753105e14a8c223a1b59c0cbd9369b.tar.gz
Qt-1ef309e964753105e14a8c223a1b59c0cbd9369b.tar.bz2
Fix QSysInfo::WindowsVersion checking (QSysInfo::WV_NT_based is a mask)
Merge-request: 1272 Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Diffstat (limited to 'src/gui/kernel/qwhatsthis.cpp')
-rw-r--r--src/gui/kernel/qwhatsthis.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/kernel/qwhatsthis.cpp b/src/gui/kernel/qwhatsthis.cpp
index 5328cb1..da79250 100644
--- a/src/gui/kernel/qwhatsthis.cpp
+++ b/src/gui/kernel/qwhatsthis.cpp
@@ -227,7 +227,7 @@ QWhatsThat::QWhatsThat(const QString& txt, QWidget* parent, QWidget *showTextFor
}
#if defined(Q_WS_WIN)
if ((QSysInfo::WindowsVersion >= QSysInfo::WV_XP
- && QSysInfo::WindowsVersion < QSysInfo::WV_NT_based))
+ && (QSysInfo::WindowsVersion & QSysInfo::WV_NT_based)))
{
BOOL shadow;
SystemParametersInfo(SPI_GETDROPSHADOW, 0, &shadow, 0);
@@ -305,7 +305,7 @@ void QWhatsThat::paintEvent(QPaintEvent*)
bool drawShadow = true;
#if defined(Q_WS_WIN)
if ((QSysInfo::WindowsVersion >= QSysInfo::WV_XP
- && QSysInfo::WindowsVersion < QSysInfo::WV_NT_based))
+ && (QSysInfo::WindowsVersion & QSysInfo::WV_NT_based)))
{
BOOL shadow;
SystemParametersInfo(SPI_GETDROPSHADOW, 0, &shadow, 0);