- 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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user