aboutsummaryrefslogtreecommitdiffstats
path: root/wizard.cpp
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-11-15 17:17:45 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-11-15 17:17:45 +0000
commitc41a07b534b32a9e7cfbf58d05ecfac99b82e36d (patch)
treea688fbfc690270ba5aa31bd2669f7e390de88323 /wizard.cpp
parentmore text in wizard (diff)
downloadgpg4usb-c41a07b534b32a9e7cfbf58d05ecfac99b82e36d.tar.gz
gpg4usb-c41a07b534b32a9e7cfbf58d05ecfac99b82e36d.zip
beautified button position in wizard
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@618 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'wizard.cpp')
-rw-r--r--wizard.cpp20
1 files changed, 17 insertions, 3 deletions
diff --git a/wizard.cpp b/wizard.cpp
index 84b8657..2d903a3 100644
--- a/wizard.cpp
+++ b/wizard.cpp
@@ -75,11 +75,15 @@ KeyGenPage::KeyGenPage(GpgME::GpgContext *ctx, QWidget *parent)
QLabel *linkLabel = new QLabel("<a href=""http://gpg4usb.cpunk.de/docu.html"">"+tr("Online tutorial")+"</a>");
linkLabel->setOpenExternalLinks(true);
+ QWidget *createKeyButtonBox = new QWidget(this);
+ QHBoxLayout *createKeyButtonBoxLayout = new QHBoxLayout(createKeyButtonBox);
createKeyButton = new QPushButton(tr("Create New Key"));
+ createKeyButtonBoxLayout->addWidget(createKeyButton);
+ createKeyButtonBoxLayout->addStretch(1);
layout = new QVBoxLayout();
layout->addWidget(topLabel);
layout->addWidget(linkLabel);
- layout->addWidget(createKeyButton);
+ layout->addWidget(createKeyButtonBox);
connect(createKeyButton, SIGNAL(clicked()), this, SLOT(generateKeyDialog()));
setLayout(layout);
@@ -116,6 +120,7 @@ ImportPage::ImportPage(GpgME::GpgContext *ctx, QWidget *parent)
QHBoxLayout *privHBoxLayout = new QHBoxLayout();
privHBoxLayout->addWidget(privateKeysCheckBox);
privHBoxLayout->addWidget(privateKeysLabel);
+ privHBoxLayout->addStretch(1);
privHBox->setLayout(privHBoxLayout);
// Layout for public keys
@@ -125,15 +130,24 @@ ImportPage::ImportPage(GpgME::GpgContext *ctx, QWidget *parent)
QHBoxLayout *pubHBoxLayout = new QHBoxLayout();
pubHBoxLayout->addWidget(publicKeysCheckBox);
pubHBoxLayout->addWidget(publicKeysLabel);
+ pubHBoxLayout->addStretch(1);
pubHBox->setLayout(pubHBoxLayout);
+ QWidget *importKeyButtonBox = new QWidget(this);
+ QHBoxLayout *importKeyButtonBoxLayout = new QHBoxLayout(importKeyButtonBox);
importKeyButton = new QPushButton(tr("Import keys"));
+ connect(importKeyButton, SIGNAL(clicked()), this, SLOT(importKeys()));
+
+ importKeyButtonBoxLayout->addStretch(1);
+ importKeyButtonBoxLayout->addWidget(importKeyButton);
+
+
layout = new QVBoxLayout();
layout->addWidget(topLabel);
layout->addWidget(privHBox);
layout->addWidget(pubHBox);
- layout->addWidget(importKeyButton);
- connect(importKeyButton, SIGNAL(clicked()), this, SLOT(importKeys()));
+ layout->addWidget(importKeyButtonBox);
+
setLayout(layout);
}