aboutsummaryrefslogtreecommitdiff
path: root/lumina-fileinfo
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-fileinfo')
-rw-r--r--lumina-fileinfo/MainUI.cpp2
-rw-r--r--lumina-fileinfo/MainUI.ui5
2 files changed, 3 insertions, 4 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..cf74a6e1 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">
@@ -19,9 +19,6 @@
<property name="currentIndex">
<number>0</number>
</property>
- <property name="tabBarAutoHide">
- <bool>true</bool>
- </property>
<widget class="QWidget" name="tab_file">
<attribute name="title">
<string>File Information</string>
bgstack15