diff options
-rw-r--r-- | lumina-fileinfo/MainUI.cpp | 2 | ||||
-rw-r--r-- | lumina-fileinfo/MainUI.ui | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lumina-fileinfo/MainUI.cpp b/lumina-fileinfo/MainUI.cpp index 481574e0..a2c30ebd 100644 --- a/lumina-fileinfo/MainUI.cpp +++ b/lumina-fileinfo/MainUI.cpp @@ -116,6 +116,8 @@ void MainUI::LoadFile(QString path, QString type){ //Setup the tab if(type.isEmpty()){ ui->tabWidget->setCurrentIndex(0); } else if(ui->tabWidget->count()>1){ ui->tabWidget->setCurrentIndex(1); } + //Hide the tab bar (the autoHideTabBar setting was not added until Qt 5.4) + if(ui->tabWidget->count() < 2){ ui->tabWidget->tabBar()->hide(); } } void MainUI::UpdateIcons(){ diff --git a/lumina-fileinfo/MainUI.ui b/lumina-fileinfo/MainUI.ui index def8bf70..296594c8 100644 --- a/lumina-fileinfo/MainUI.ui +++ b/lumina-fileinfo/MainUI.ui @@ -7,7 +7,7 @@ <x>0</x> <y>0</y> <width>349</width> - <height>327</height> + <height>354</height> </rect> </property> <property name="windowTitle"> @@ -20,7 +20,7 @@ <number>0</number> </property> <property name="tabBarAutoHide"> - <bool>true</bool> + <bool>false</bool> </property> <widget class="QWidget" name="tab_file"> <attribute name="title"> |