UI: Options: IP Addresses: Don't expand tabs

This commit is contained in:
Nodir Temirkhodjaev 2024-09-11 19:15:34 +05:00
parent f665e04ac7
commit 538e2f4309

View File

@ -92,12 +92,10 @@ void AddressesPage::retranslateAddressesPlaceholderText()
void AddressesPage::setupUi() void AddressesPage::setupUi()
{ {
auto layout = new QVBoxLayout();
// Tab Bar // Tab Bar
m_tabBar = new QTabBar(); m_tabBar = new QTabBar();
m_tabBar->setShape(QTabBar::RoundedNorth); 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/global_telecom.png"), QString());
m_tabBar->addTab(IconCache::icon(":/icons/ip_block.png"), QString()); m_tabBar->addTab(IconCache::icon(":/icons/ip_block.png"), QString());
@ -109,11 +107,14 @@ void AddressesPage::setupUi()
// Splitter // Splitter
setupSplitter(); setupSplitter();
layout->addWidget(m_splitter, 1);
// Splitter Buttons // Splitter Buttons
setupSplitterButtons(); setupSplitterButtons();
auto layout = new QVBoxLayout();
layout->addWidget(m_tabBar);
layout->addWidget(m_splitter, 1);
this->setLayout(layout); this->setLayout(layout);
} }