[PATCH] (Issue 21) Activate wordWrap for long labels

Wald Commits scm-commit at wald.intevation.org
Tue Jul 1 16:53:34 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1404226411 -7200
# Node ID 25a73bfec35925e64165846b3c90de839163d5b4
# Parent  0fc1a20adaff00728eab1f1be9587b03ef8d0e36
(Issue 21) Activate wordWrap for long labels.

diff -r 0fc1a20adaff -r 25a73bfec359 ui/mainwindow.cpp
--- 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&)),


More information about the Trustbridge-commits mailing list