Start: little layout tweak to First Start Region
This commit is contained in:
committed by
Yorik van Havre
parent
4fe1513365
commit
91a68b1b58
@@ -58,7 +58,7 @@ FirstStartWidget::FirstStartWidget(QWidget* parent)
|
||||
void FirstStartWidget::setupUi()
|
||||
{
|
||||
auto outerLayout = gsl::owner<QVBoxLayout*>(new QVBoxLayout(this));
|
||||
outerLayout->addStretch();
|
||||
outerLayout->setAlignment(Qt::AlignCenter);
|
||||
QString application = QString::fromUtf8(App::Application::Config()["ExeName"].c_str());
|
||||
_welcomeLabel = gsl::owner<QLabel*>(new QLabel);
|
||||
outerLayout->addWidget(_welcomeLabel);
|
||||
@@ -74,10 +74,9 @@ void FirstStartWidget::setupUi()
|
||||
_doneButton = gsl::owner<QPushButton*>(new QPushButton);
|
||||
connect(_doneButton, &QPushButton::clicked, this, &FirstStartWidget::dismissed);
|
||||
auto buttonBar = gsl::owner<QHBoxLayout*>(new QHBoxLayout);
|
||||
buttonBar->addStretch();
|
||||
buttonBar->setAlignment(Qt::AlignRight);
|
||||
buttonBar->addWidget(_doneButton);
|
||||
outerLayout->addLayout(buttonBar);
|
||||
outerLayout->addStretch();
|
||||
|
||||
retranslateUi();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user