From a968178f19399740be05ef220d0fad828ab0a87a Mon Sep 17 00:00:00 2001 From: nils Date: Tue, 24 Jan 2012 23:13:38 +0000 Subject: moved layout definitions from header to sourcefile where possible git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@775 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- keydetailsdialog.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'keydetailsdialog.cpp') diff --git a/keydetailsdialog.cpp b/keydetailsdialog.cpp index 8cff661..0c24164 100644 --- a/keydetailsdialog.cpp +++ b/keydetailsdialog.cpp @@ -24,7 +24,6 @@ KeyDetailsDialog::KeyDetailsDialog(GpgME::GpgContext* ctx, gpgme_key_t key, QWidget *parent) : QDialog(parent) { - mCtx = ctx; keyid = new QString(key->subkeys->keyid); @@ -84,9 +83,9 @@ KeyDetailsDialog::KeyDetailsDialog(GpgME::GpgContext* ctx, gpgme_key_t key, QWid createdVarLabel = new QLabel(keyCreatedVal); algorithmVarLabel = new QLabel(keyAlgoVal); - mvbox = new QVBoxLayout(); - vboxKD = new QGridLayout(); - vboxOD = new QGridLayout(); + QVBoxLayout *mvbox = new QVBoxLayout(); + QGridLayout *vboxKD = new QGridLayout(); + QGridLayout *vboxOD = new QGridLayout(); vboxOD->addWidget(nameLabel, 0, 0); vboxOD->addWidget(emailLabel, 1, 0); @@ -113,7 +112,6 @@ KeyDetailsDialog::KeyDetailsDialog(GpgME::GpgContext* ctx, gpgme_key_t key, QWid keyBox->setLayout(vboxKD); mvbox->addWidget(keyBox); - vboxFP = new QVBoxLayout(); fingerPrintVarLabel = new QLabel(beautifyFingerprint(key->subkeys->fpr)); fingerPrintVarLabel->setTextInteractionFlags(Qt::TextSelectableByMouse); fingerPrintVarLabel->setStyleSheet("margin-left: 20; margin-right: 20;"); @@ -134,9 +132,9 @@ KeyDetailsDialog::KeyDetailsDialog(GpgME::GpgContext* ctx, gpgme_key_t key, QWid mvbox->addWidget(fingerprintBox); // If key has more than primary uid, also show the other uids - gpgme_user_id_t addUserIds= key->uids->next; + gpgme_user_id_t addUserIds = key->uids->next; if (addUserIds !=NULL) { - vboxUID = new QVBoxLayout(); + QVBoxLayout *vboxUID = new QVBoxLayout(); while (addUserIds != NULL){ addUserIdsVarLabel = new QLabel(addUserIds->name+ QString(" <")+addUserIds->email+">"); addUserIdsVarLabel->setTextInteractionFlags(Qt::TextSelectableByMouse); -- cgit v1.2.3