summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Heinecke <aheinecke@intevation.de>2016-08-11 13:13:23 (GMT)
committerAndre Heinecke <aheinecke@intevation.de>2016-08-11 13:14:24 (GMT)
commit6305064e85c2a945f9ed93e2ba2ca2508ce7c679 (patch)
tree96e102de812a8de7f0f3c71af078547a5197f908
parentc24d6945965bc27e15fefca2e137bc852dc03305 (diff)
Enfore modern sigencfileswizard style on Windows
Otherwise the wizard's title is duplicated in a very ugly way on Windows 10 and does not look more native in any way imo.
-rw-r--r--src/crypto/gui/signencryptfileswizard.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/crypto/gui/signencryptfileswizard.cpp b/src/crypto/gui/signencryptfileswizard.cpp
index 70744a1..7855668 100644
--- a/src/crypto/gui/signencryptfileswizard.cpp
+++ b/src/crypto/gui/signencryptfileswizard.cpp
@@ -312,6 +312,10 @@ SignEncryptFilesWizard::SignEncryptFilesWizard(QWidget *parent, Qt::WindowFlags
, mEncryptionUserMutable(false)
, mEncryptionPreset(false)
{
+#ifdef Q_OS_WIN
+ // Enforce modern style to avoid vista style uglyness.
+ setWizardStyle(QWizard::ModernStyle);
+#endif
mSigEncPage = new SigEncPage(this);
mResultPage = new ResultPage(this);