diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2017-09-28 14:20:44 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2017-09-28 19:30:07 +0000 |
commit | 98d263a673921b70d13f5aec336b371a0eec574e (patch) | |
tree | c3c85b84adc1fa6393c4184adae1e6b62426cea5 /examples | |
parent | 8b1769f9e33ffe820c39f8f2a43a575ab5ae7772 (diff) |
Clean up code checking the Windows version
Use QOperatingSystemVersion or remove code for version < Windows 7.
Change-Id: I080778255f1427d79bceb77a2fa39728c538ec40
Reviewed-by: Andre de la Rocha <andre.rocha@qt.io>
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/winextras/iconextractor/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/winextras/iconextractor/main.cpp b/examples/winextras/iconextractor/main.cpp index 6efd27b..5e6dbd3 100644 --- a/examples/winextras/iconextractor/main.cpp +++ b/examples/winextras/iconextractor/main.cpp @@ -237,7 +237,7 @@ static PixmapEntryList extractShellIcons(const QString &sourceFile, bool addOver } } // for standardSizeEntryCount // Windows Vista onwards: extract large/jumbo icons - if (QSysInfo::windowsVersion() >= QSysInfo::WV_VISTA && info.hIcon) { + if (info.hIcon) { const QPixmap extraLarge = pixmapFromShellImageList(sHIL_EXTRALARGE, info); if (!extraLarge.isNull()) { PixmapEntry entry; |