smallerFont.setPointSize(smallerFont.pointSize()*.85);
smallerFont.setBold(true);
- QBoxLayout *mainLayout = new QHBoxLayout();
- mainLayout->setAlignment(Qt::AlignCenter);
- mainLayout->setMargin(PADDING);
-
- QLabel *logo = new QLabel(this);
- logo->setPixmap(QPixmap(":/images/app.png"));
- mainLayout->addWidget(logo, 0, Qt::AlignTop);
- mainLayout->addSpacing(PADDING);
+ QBoxLayout *mainLayout = new QVBoxLayout();
+ mainLayout->setMargin(0);
+ mainLayout->setSpacing(0);
// hidden message widget
message = new QLabel(this);
message->hide();
mainLayout->addWidget(message);
+ mainLayout->addStretch();
+
+ QBoxLayout *hLayout = new QHBoxLayout();
+ hLayout->setAlignment(Qt::AlignCenter);
+ mainLayout->addLayout(hLayout);
+
+ QLabel *logo = new QLabel(this);
+ logo->setPixmap(QPixmap(":/images/app.png"));
+ hLayout->addWidget(logo, 0, Qt::AlignTop);
+ hLayout->addSpacing(PADDING);
+
QVBoxLayout *layout = new QVBoxLayout();
layout->setAlignment(Qt::AlignCenter);
- mainLayout->addLayout(layout);
+ hLayout->addLayout(layout);
QLabel *welcomeLabel =
new QLabel("<h1>" +
connect(watchButton, SIGNAL(clicked()), this, SLOT(watch()));
searchLayout->addWidget(watchButton);
-
layout->addItem(searchLayout);
layout->addSpacing(PADDING);
QHBoxLayout *otherLayout = new QHBoxLayout();
recentKeywordsLayout = new QVBoxLayout();
- recentKeywordsLayout->setAlignment(Qt::AlignTop | Qt::AlignLeft);
+ recentKeywordsLayout->setSpacing(5);
+ recentKeywordsLayout->setAlignment(Qt::AlignVCenter | Qt::AlignLeft);
recentKeywordsLabel = new QLabel(tr("Recent keywords").toUpper(), this);
recentKeywordsLabel->hide();
recentKeywordsLabel->setForegroundRole(QPalette::Dark);
layout->addLayout(otherLayout);
+ mainLayout->addStretch();
+
setLayout(mainLayout);
updateChecker = 0;