mirror of
https://github.com/tnodir/fort
synced 2024-11-15 05:36:09 +00:00
UI: Options: IP Addresses: Don't expand tabs
This commit is contained in:
parent
f665e04ac7
commit
538e2f4309
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user