From 40f8c5f5f090a38984a829e435c484925c6f1553 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 11 Jun 2018 11:54:44 +0300 Subject: [PATCH] Link with library uxtheme to enable new style since WindowsXP or later. --HG-- branch : develop --- src/app/tape/tape.pro | 5 +++++ src/app/valentina/valentina.pro | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/app/tape/tape.pro b/src/app/tape/tape.pro index a4769bdd1..6fc3003df 100644 --- a/src/app/tape/tape.pro +++ b/src/app/tape/tape.pro @@ -330,6 +330,11 @@ noRunPath{ # For enable run qmake with CONFIG+=noRunPath } } +win32:greaterThan(QT_MAJOR_VERSION, 4) { + # Link with library uxtheme to enable new style since WindowsXP or later + LIBS += -luxtheme +} + # When the GNU linker sees a library, it discards all symbols that it doesn't need. # Dependent library go first. diff --git a/src/app/valentina/valentina.pro b/src/app/valentina/valentina.pro index 8da7a5629..3201610b6 100644 --- a/src/app/valentina/valentina.pro +++ b/src/app/valentina/valentina.pro @@ -459,6 +459,11 @@ noRunPath{ # For enable run qmake with CONFIG+=noRunPath } } +win32:greaterThan(QT_MAJOR_VERSION, 4) { + # Link with library uxtheme to enable new style since WindowsXP or later + LIBS += -luxtheme +} + # When the GNU linker sees a library, it discards all symbols that it doesn't need. # Dependent library go first.