comparison 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
comparison
equal deleted inserted replaced
693:0fc1a20adaff 694:25a73bfec359
665 QLabel *installHeaderLabel = 665 QLabel *installHeaderLabel =
666 new QLabel("<h2>" + tr("Trusted certificates") + "</h2>"); 666 new QLabel("<h2>" + tr("Trusted certificates") + "</h2>");
667 QLabel *installHeaderText = new QLabel(tr("The following list of trusted root" 667 QLabel *installHeaderText = new QLabel(tr("The following list of trusted root"
668 " certificates is managed by the BSI. The BSI validates independently the" 668 " certificates is managed by the BSI. The BSI validates independently the"
669 " authenticity, security and actuality of these certificates.")); 669 " authenticity, security and actuality of these certificates."));
670 installHeaderText->setWordWrap(true);
670 installHeaderLayout->addWidget(installHeaderLabel); 671 installHeaderLayout->addWidget(installHeaderLabel);
671 installHeaderLayout->addWidget(installHeaderText); 672 installHeaderLayout->addWidget(installHeaderText);
672 673
673 QLabel *installCenterText = new QLabel(tr("Please choose the certificates" 674 QLabel *installCenterText = new QLabel(tr("Please choose the certificates"
674 " you want to trust or untrust. TrustBridge will install these certificates for your" 675 " you want to trust or untrust. TrustBridge will install these certificates for your"
675 " secure communication for email and internet.")); 676 " secure communication for email and internet."));
677 installCenterText->setWordWrap(true);
676 installCenterLayout->addWidget(installCenterText); 678 installCenterLayout->addWidget(installCenterText);
677 mInstallList = new CertificateListWidget(this); 679 mInstallList = new CertificateListWidget(this);
678 connect(mInstallList, SIGNAL(certChanged(bool, const Certificate&)), 680 connect(mInstallList, SIGNAL(certChanged(bool, const Certificate&)),
679 this, SLOT(toggleInManual(bool, const Certificate&))); 681 this, SLOT(toggleInManual(bool, const Certificate&)));
680 682
694 QLabel *removeHeaderLabel = 696 QLabel *removeHeaderLabel =
695 new QLabel("<h2>" + tr("Revoked certificates") + "</h2>"); 697 new QLabel("<h2>" + tr("Revoked certificates") + "</h2>");
696 QLabel *removeHeaderText = new QLabel(tr("Certificates can be corrupted" 698 QLabel *removeHeaderText = new QLabel(tr("Certificates can be corrupted"
697 " or stolen and misused in many ways. Therefore the BSI recommends" 699 " or stolen and misused in many ways. Therefore the BSI recommends"
698 " to remove all revoked certificates from your system.")); 700 " to remove all revoked certificates from your system."));
701 removeHeaderText->setWordWrap(true);
699 removeHeaderLayout->addWidget(removeHeaderLabel); 702 removeHeaderLayout->addWidget(removeHeaderLabel);
700 removeHeaderLayout->addWidget(removeHeaderText); 703 removeHeaderLayout->addWidget(removeHeaderText);
701 704
702 QLabel *removeCenterText = new QLabel(tr("The follwing unsecure certificates were" 705 QLabel *removeCenterText = new QLabel(tr("The follwing unsecure certificates were"
703 " revoked by the BSI. Already uninstalled certificates cannot be reinstalled." 706 " revoked by the BSI. Already uninstalled certificates cannot be reinstalled."
704 " It is recommended that you select all certificates to uninstall if you still" 707 " It is recommended that you select all certificates to uninstall if you still"
705 " have revoked certificates installed.")); 708 " have revoked certificates installed."));
709 removeCenterText->setWordWrap(true);
706 removeCenterLayout->addWidget(removeCenterText); 710 removeCenterLayout->addWidget(removeCenterText);
707 mRemoveList = new CertificateListWidget(this); 711 mRemoveList = new CertificateListWidget(this);
708 connect(mRemoveList, SIGNAL(certChanged(bool, const Certificate&)), 712 connect(mRemoveList, SIGNAL(certChanged(bool, const Certificate&)),
709 this, SLOT(toggleInManual(bool, const Certificate&))); 713 this, SLOT(toggleInManual(bool, const Certificate&)));
710 714

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