aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-10-28 09:17:32 -0400
committerKen Moore <moorekou@gmail.com>2015-10-28 09:17:32 -0400
commit0469554a82c23250998b4019e0e714c85a6e1f4a (patch)
treeca08351657a1e0fdb8fb34a5452f4f4d2308f81b
parentOk, now the external process commands *truly* run in a separate thread throug... (diff)
downloadlumina-0469554a82c23250998b4019e0e714c85a6e1f4a.tar.gz
lumina-0469554a82c23250998b4019e0e714c85a6e1f4a.tar.bz2
lumina-0469554a82c23250998b4019e0e714c85a6e1f4a.zip
Replace the "tabBarAutoHide" setting with a manual check/hide of the tab bar in lumina-fileinfo. This reduces the minimum Qt version from 5.4 back down to about 5.2
-rw-r--r--lumina-fileinfo/MainUI.cpp2
-rw-r--r--lumina-fileinfo/MainUI.ui4
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">
bgstack15