mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-24 13:07:44 +00:00
launcher: Improve margins
This commit is contained in:
parent
2bd232f40e
commit
f1864d39ed
1 changed files with 5 additions and 0 deletions
|
@ -72,12 +72,15 @@ MainWindow::MainWindow()
|
||||||
});
|
});
|
||||||
|
|
||||||
auto appListLayout = new QVBoxLayout();
|
auto appListLayout = new QVBoxLayout();
|
||||||
|
appListLayout->setContentsMargins(0, 0, 0, 0);
|
||||||
appListLayout->addWidget(appList);
|
appListLayout->addWidget(appList);
|
||||||
|
|
||||||
auto centralFrame = new QFrame();
|
auto centralFrame = new QFrame();
|
||||||
|
centralFrame->setContentsMargins(0, 0, 0, 0);
|
||||||
centralFrame->setLayout(appListLayout);
|
centralFrame->setLayout(appListLayout);
|
||||||
|
|
||||||
auto formLayout = new QFormLayout();
|
auto formLayout = new QFormLayout();
|
||||||
|
formLayout->setContentsMargins(5, 5, 5, 5); // TODO: use style values
|
||||||
|
|
||||||
KConfig config(QStringLiteral("novusrc"));
|
KConfig config(QStringLiteral("novusrc"));
|
||||||
KConfigGroup game = config.group(QStringLiteral("Game"));
|
KConfigGroup game = config.group(QStringLiteral("Game"));
|
||||||
|
@ -89,6 +92,8 @@ MainWindow::MainWindow()
|
||||||
gameCombo->addItem(game.readEntry("GameDir"));
|
gameCombo->addItem(game.readEntry("GameDir"));
|
||||||
|
|
||||||
auto mainLayout = new QVBoxLayout();
|
auto mainLayout = new QVBoxLayout();
|
||||||
|
mainLayout->setSpacing(0);
|
||||||
|
mainLayout->setContentsMargins(0, 0, 0, 0);
|
||||||
mainLayout->addWidget(centralFrame);
|
mainLayout->addWidget(centralFrame);
|
||||||
mainLayout->addLayout(formLayout);
|
mainLayout->addLayout(formLayout);
|
||||||
auto centralWidget = new QWidget();
|
auto centralWidget = new QWidget();
|
||||||
|
|
Loading…
Add table
Reference in a new issue