30 Constructor |
30 Constructor |
31 |
31 |
32 @param parent reference to the parent widget |
32 @param parent reference to the parent widget |
33 @type QWidget |
33 @type QWidget |
34 """ |
34 """ |
35 super(SessionManagerDialog, self).__init__(parent) |
35 super().__init__(parent) |
36 self.setupUi(self) |
36 self.setupUi(self) |
37 self.setAttribute(Qt.WidgetAttribute.WA_DeleteOnClose) |
37 self.setAttribute(Qt.WidgetAttribute.WA_DeleteOnClose) |
38 |
38 |
39 self.newButton.clicked.connect(self.__newSession) |
39 self.newButton.clicked.connect(self.__newSession) |
40 self.renameButton.clicked.connect(self.__renameSession) |
40 self.renameButton.clicked.connect(self.__renameSession) |
134 Protected method handling the dialog being shown. |
134 Protected method handling the dialog being shown. |
135 |
135 |
136 @param evt reference to the event object |
136 @param evt reference to the event object |
137 @type QShowEvent |
137 @type QShowEvent |
138 """ |
138 """ |
139 super(SessionManagerDialog, self).showEvent(evt) |
139 super().showEvent(evt) |
140 self.__resizeViewHeader() |
140 self.__resizeViewHeader() |
141 |
141 |
142 def resizeEvent(self, evt): |
142 def resizeEvent(self, evt): |
143 """ |
143 """ |
144 Protected method handling the dialog being resized. |
144 Protected method handling the dialog being resized. |
145 |
145 |
146 @param evt reference to the event object |
146 @param evt reference to the event object |
147 @type QResizeEvent |
147 @type QResizeEvent |
148 """ |
148 """ |
149 super(SessionManagerDialog, self).resizeEvent(evt) |
149 super().resizeEvent(evt) |
150 self.__resizeViewHeader() |
150 self.__resizeViewHeader() |
151 |
151 |
152 def __resizeViewHeader(self): |
152 def __resizeViewHeader(self): |
153 """ |
153 """ |
154 Private method to resize the session column of the list. |
154 Private method to resize the session column of the list. |