summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-04-12 20:17:23 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-04-12 20:17:23 (GMT)
commit508e84ddded9a94a3f48d0d8821971f4b5b352c9 (patch)
treed588153422c71be974d1611c58d35538047b2918 /Swift
parentb47f2cdbb8c58b2f2051725443da26c3fb88e1a1 (diff)
downloadswift-508e84ddded9a94a3f48d0d8821971f4b5b352c9.zip
swift-508e84ddded9a94a3f48d0d8821971f4b5b352c9.tar.bz2
Align the login window in the middle.
Resolves: #252
Diffstat (limited to 'Swift')
-rw-r--r--Swift/QtUI/QtLoginWindow.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Swift/QtUI/QtLoginWindow.cpp b/Swift/QtUI/QtLoginWindow.cpp
index 8ad20e7..4637322 100644
--- a/Swift/QtUI/QtLoginWindow.cpp
+++ b/Swift/QtUI/QtLoginWindow.cpp
@@ -47,7 +47,7 @@ QtLoginWindow::QtLoginWindow(UIEventStream* uiEventStream) : QMainWindow() {
QWidget *wrapperWidget = new QWidget(this);
wrapperWidget->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding));
QBoxLayout *layout = new QBoxLayout(QBoxLayout::TopToBottom, wrapperWidget);
- layout->addStretch();
+ layout->addStretch(2);
QLabel* logo = new QLabel(this);
logo->setPixmap(QPixmap(":/logo-shaded-text.256.png"));
@@ -107,6 +107,8 @@ QtLoginWindow::QtLoginWindow(UIEventStream* uiEventStream) : QMainWindow() {
loginAutomatically_ = new QCheckBox(tr("Login Automatically?"), this);
layout->addWidget(loginAutomatically_);
+ layout->addStretch(2);
+
connect(loginButton_, SIGNAL(clicked()), SLOT(loginClicked()));
stack_->addWidget(wrapperWidget);
#ifdef SWIFTEN_PLATFORM_MACOSX