From 538e2f43090f84e3c95d74c5e261a70168e85671 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Wed, 11 Sep 2024 19:15:34 +0500 Subject: [PATCH] UI: Options: IP Addresses: Don't expand tabs --- src/ui/form/opt/pages/addressespage.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ui/form/opt/pages/addressespage.cpp b/src/ui/form/opt/pages/addressespage.cpp index bfbc2379..e4e38cfe 100644 --- a/src/ui/form/opt/pages/addressespage.cpp +++ b/src/ui/form/opt/pages/addressespage.cpp @@ -92,12 +92,10 @@ void AddressesPage::retranslateAddressesPlaceholderText() void AddressesPage::setupUi() { - auto layout = new QVBoxLayout(); - // Tab Bar m_tabBar = new QTabBar(); m_tabBar->setShape(QTabBar::RoundedNorth); - layout->addWidget(m_tabBar); + m_tabBar->setExpanding(false); m_tabBar->addTab(IconCache::icon(":/icons/global_telecom.png"), QString()); m_tabBar->addTab(IconCache::icon(":/icons/ip_block.png"), QString()); @@ -109,11 +107,14 @@ void AddressesPage::setupUi() // Splitter setupSplitter(); - layout->addWidget(m_splitter, 1); // Splitter Buttons setupSplitterButtons(); + auto layout = new QVBoxLayout(); + layout->addWidget(m_tabBar); + layout->addWidget(m_splitter, 1); + this->setLayout(layout); }