diff ui/mainwindow.cpp @ 694:25a73bfec359

(Issue 21) Activate wordWrap for long labels.
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 01 Jul 2014 16:53:31 +0200
parents 0fc1a20adaff
children 55f78c4166fb
line wrap: on
line diff
--- a/ui/mainwindow.cpp	Tue Jul 01 16:43:58 2014 +0200
+++ b/ui/mainwindow.cpp	Tue Jul 01 16:53:31 2014 +0200
@@ -667,12 +667,14 @@
     QLabel *installHeaderText = new QLabel(tr("The following list of trusted root"
         " certificates is managed by the BSI. The BSI validates independently the"
         " authenticity, security and actuality of these certificates."));
+    installHeaderText->setWordWrap(true);
     installHeaderLayout->addWidget(installHeaderLabel);
     installHeaderLayout->addWidget(installHeaderText);
 
     QLabel *installCenterText = new QLabel(tr("Please choose the certificates"
         " you want to trust or untrust. TrustBridge will install these certificates for your"
         " secure communication for email and internet."));
+    installCenterText->setWordWrap(true);
     installCenterLayout->addWidget(installCenterText);
     mInstallList = new CertificateListWidget(this);
     connect(mInstallList, SIGNAL(certChanged(bool, const Certificate&)),
@@ -696,6 +698,7 @@
     QLabel *removeHeaderText = new QLabel(tr("Certificates can be corrupted"
 	" or stolen and misused in many ways. Therefore the BSI recommends"
 	" to remove all revoked certificates from your system."));
+    removeHeaderText->setWordWrap(true);
     removeHeaderLayout->addWidget(removeHeaderLabel);
     removeHeaderLayout->addWidget(removeHeaderText);
 
@@ -703,6 +706,7 @@
 	" revoked by the BSI. Already uninstalled certificates cannot be reinstalled."
 	" It is recommended that you select all certificates to uninstall if you still"
 	" have revoked certificates installed."));
+    removeCenterText->setWordWrap(true);
     removeCenterLayout->addWidget(removeCenterText);
     mRemoveList = new CertificateListWidget(this);
     connect(mRemoveList, SIGNAL(certChanged(bool, const Certificate&)),

http://wald.intevation.org/projects/trustbridge/