- modified the behavior of the Tool Tab in the Notebook widget. Now the app start with the Tool Tab off. If an App Tool is launched then the Tool Tab is added and populated. If the same App Tool is launched again and the focus is in its Tool Tab then the Tool Tab is removed but if the focus is elsewhere then the focus is set again on the Tool Tab.

This commit is contained in:
Marius Stanciu
2020-11-16 01:56:35 +02:00
committed by Marius
parent 883c41658e
commit cd94814987
31 changed files with 866 additions and 320 deletions

View File

@@ -1373,7 +1373,8 @@ class MainGUI(QtWidgets.QMainWindow):
self.tool_tab.setObjectName("tool_tab")
self.tool_tab_layout = QtWidgets.QVBoxLayout(self.tool_tab)
self.tool_tab_layout.setContentsMargins(2, 2, 2, 2)
self.notebook.addTab(self.tool_tab, _("Tool"))
# self.notebook.addTab(self.tool_tab, _("Tool"))
self.tool_scroll_area = VerticalScrollArea()
# self.tool_scroll_area.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents)
self.tool_tab_layout.addWidget(self.tool_scroll_area)