90 |
90 |
91 def __activateWidget(self): |
91 def __activateWidget(self): |
92 """ |
92 """ |
93 Private slot to handle the activation of the project browser. |
93 Private slot to handle the activation of the project browser. |
94 """ |
94 """ |
95 if self.__ui.layout == "Toolboxes": |
95 uiLayoutType = self.__ui.getLayoutType() |
|
96 if uiLayoutType == "Toolboxes": |
96 self.__ui.hToolboxDock.show() |
97 self.__ui.hToolboxDock.show() |
97 self.__ui.hToolboxDock.setCurrentWidget(self.__widget) |
98 self.__ui.hToolbox.setCurrentWidget(self.__widget) |
98 elif self.__ui.layout == "Sidebars": |
99 elif uiLayoutType == "Sidebars": |
99 self.__ui.bottomSidebar.show() |
100 self.__ui.bottomSidebar.show() |
100 self.__ui.bottomSidebar.setCurrentWidget(self.__widget) |
101 self.__ui.bottomSidebar.setCurrentWidget(self.__widget) |
101 else: |
102 else: |
102 self.__widget.show() |
103 self.__widget.show() |
103 self.__widget.setFocus(Qt.ActiveWindowFocusReason) |
104 self.__widget.setFocus(Qt.ActiveWindowFocusReason) |