Auto hide Tab-bar and Statusbar

This commit is contained in:
BasioMeusPuga
2018-03-29 02:50:01 +05:30
parent 406ca0485f
commit 0d015ad72e
4 changed files with 37 additions and 22 deletions

View File

@@ -158,8 +158,6 @@ class Tab(QtWidgets.QWidget):
title = self.metadata['title']
self.main_window.tabWidget.addTab(self, title)
# TODO
# Show cover image as tooltip text
this_tab_index = self.main_window.tabWidget.indexOf(self)
cover_icon = QtGui.QPixmap()
cover_icon.loadFromData(self.metadata['cover'])
@@ -171,6 +169,10 @@ class Tab(QtWidgets.QWidget):
self.mouse_hide_timer.setSingleShot(True)
self.mouse_hide_timer.timeout.connect(self.hide_mouse)
# Hide the tab bar in case distraction free mode is active
if not self.main_window.settings['show_bars']:
self.main_window.tabWidget.tabBar().setVisible(False)
self.contentView.setFocus()
def update_last_accessed_time(self):