From ace9ed58de47e3864e16bc2b3d65561ce1506d77 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Sun, 31 Mar 2024 13:56:19 +0300 Subject: [PATCH] UI: HomeWindow: Minor refactor --- src/ui/form/home/homewindow.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ui/form/home/homewindow.cpp b/src/ui/form/home/homewindow.cpp index d45c0c68..af92ef3c 100644 --- a/src/ui/form/home/homewindow.cpp +++ b/src/ui/form/home/homewindow.cpp @@ -154,7 +154,7 @@ void HomeWindow::setupUi() this->setWindowIcon(IconCache::icon(":/icons/fort.png")); // Size - this->setMinimumSize(500, 400); + this->setMinimumSize(500, 300); } QWidget *HomeWindow::setupHeader() @@ -228,10 +228,8 @@ QLayout *HomeWindow::setupDialogButtons() connect(m_btHelp, &QAbstractButton::clicked, ctrl(), &BaseController::onLinkClicked); auto layout = ControlUtil::createHLayoutByWidgets( - { m_btProfile, m_btLogs, m_btStat, m_btReleases, m_btHelp }); + { m_btProfile, m_btLogs, m_btStat, m_btReleases, m_btHelp, /*stretch=*/nullptr }); layout->setContentsMargins(6, 4, 6, 4); - layout->addStretch(); - return layout; }