- work on identification of changes in Preferences tab

This commit is contained in:
Marius Stanciu
2019-07-31 17:48:18 +03:00
committed by Marius
parent 6242d1809b
commit 93b2907ba7
3 changed files with 22 additions and 1 deletions

View File

@@ -884,6 +884,7 @@ class FCDetachableTab(QtWidgets.QTabWidget):
:param currentIndex:
:return:
"""
self.removeTab(currentIndex)
def protectTab(self, currentIndex):
@@ -1348,6 +1349,25 @@ class FCDetachableTab(QtWidgets.QTabWidget):
self.detachedTabDropSignal.emit(name, index, dropPos)
class FCDetachableTab2(FCDetachableTab):
def __init__(self, protect=None, protect_by_name=None, parent=None):
super(FCDetachableTab2, self).__init__(protect=protect, protect_by_name=protect_by_name, parent=parent)
def closeTab(self, currentIndex):
"""
Slot connected to the tabCloseRequested signal
:param currentIndex:
:return:
"""
idx = self.currentIndex()
if self.tabText(idx) == _("Preferences"):
#TODO work on this, identify if widget changed and print a status message
pass
self.removeTab(currentIndex)
class VerticalScrollArea(QtWidgets.QScrollArea):
"""
This widget extends QtGui.QScrollArea to make a vertical-only