From 1c28bb1da7bbda463cbb19f55dd0311afabf6bc2 Mon Sep 17 00:00:00 2001 From: dismine Date: Sun, 11 May 2014 20:22:11 +0300 Subject: [PATCH] XP-style Common Dialogs. --HG-- branch : develop --- src/app/app.pro | 4 +++- src/app/dialogs/app/dialogincrements.ui | 4 ++-- src/app/share/resources/valentina.manifest | 8 ++++++++ src/app/share/resources/valentina.rc | 7 +++++++ 4 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 src/app/share/resources/valentina.manifest diff --git a/src/app/app.pro b/src/app/app.pro index a45d1f192..36a6c4786 100644 --- a/src/app/app.pro +++ b/src/app/app.pro @@ -64,7 +64,9 @@ RESOURCES += \ share/resources/theme.qrc \ share/resources/schema.qrc -OTHER_FILES += share/resources/valentina.rc \ +OTHER_FILES += \ + share/resources/valentina.rc \ + share/resources/valentina.manifest \ share/resources/icon/64x64/icon64x64.ico TRANSLATIONS += share/translations/valentina.ts \ diff --git a/src/app/dialogs/app/dialogincrements.ui b/src/app/dialogs/app/dialogincrements.ui index 02a8f39f5..eabbbec85 100644 --- a/src/app/dialogs/app/dialogincrements.ui +++ b/src/app/dialogs/app/dialogincrements.ui @@ -271,8 +271,8 @@ 0 0 - 98 - 96 + 939 + 411 diff --git a/src/app/share/resources/valentina.manifest b/src/app/share/resources/valentina.manifest new file mode 100644 index 000000000..0f203ac6c --- /dev/null +++ b/src/app/share/resources/valentina.manifest @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/app/share/resources/valentina.rc b/src/app/share/resources/valentina.rc index 2cf3b4d17..c48687bca 100644 --- a/src/app/share/resources/valentina.rc +++ b/src/app/share/resources/valentina.rc @@ -1,5 +1,12 @@ IDI_ICON1 ICON DISCARDABLE "icon/64x64/icon64x64.ico" +// XP-style Common Dialogs +// If you want XP mode versions then you'll have to add a resource file that +// contains a reference to a magic manifest file which specifies that your +// app using v6 of the MS common controls library. +// http://qtcreator.blogspot.it/2009/10/xp-style-common-dialogs.html +1 24 DISCARDABLE "valentina.manifest" + #include #include "../../version.h"