aboutsummaryrefslogtreecommitdiff
path: root/lumina-fileinfo/MainUI.cpp
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 /lumina-fileinfo/MainUI.cpp
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
Diffstat (limited to 'lumina-fileinfo/MainUI.cpp')
-rw-r--r--lumina-fileinfo/MainUI.cpp2
1 files changed, 2 insertions, 0 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(){
bgstack15