980 self.__paletteDock.setWidget(self.__palette) |
980 self.__paletteDock.setWidget(self.__palette) |
981 self.addDockWidget(Qt.RightDockWidgetArea, self.__paletteDock) |
981 self.addDockWidget(Qt.RightDockWidgetArea, self.__paletteDock) |
982 |
982 |
983 def closeEvent(self, evt): |
983 def closeEvent(self, evt): |
984 """ |
984 """ |
985 Private event handler for the close event. |
985 Protected event handler for the close event. |
986 |
986 |
987 @param evt the close event (QCloseEvent) |
987 @param evt the close event (QCloseEvent) |
988 <br />This event is simply accepted after the history has been |
988 <br />This event is simply accepted after the history has been |
989 saved and all window references have been deleted. |
989 saved and all window references have been deleted. |
990 """ |
990 """ |
1021 |
1021 |
1022 self.__checkActions() |
1022 self.__checkActions() |
1023 |
1023 |
1024 def __newWindow(self): |
1024 def __newWindow(self): |
1025 """ |
1025 """ |
1026 Public slot called to open a new icon editor window. |
1026 Private slot called to open a new icon editor window. |
1027 """ |
1027 """ |
1028 ie = IconEditorWindow(parent=self.parent(), fromEric=self.fromEric, |
1028 ie = IconEditorWindow(parent=self.parent(), fromEric=self.fromEric, |
1029 project=self.__project) |
1029 project=self.__project) |
1030 ie.setRecentPaths(self.__lastOpenPath, self.__lastSavePath) |
1030 ie.setRecentPaths(self.__lastOpenPath, self.__lastSavePath) |
1031 ie.show() |
1031 ie.show() |
1335 |
1335 |
1336 super(IconEditorWindow, self).wheelEvent(evt) |
1336 super(IconEditorWindow, self).wheelEvent(evt) |
1337 |
1337 |
1338 def event(self, evt): |
1338 def event(self, evt): |
1339 """ |
1339 """ |
1340 Protected method handling events. |
1340 Public method handling events. |
1341 |
1341 |
1342 @param evt reference to the event (QEvent) |
1342 @param evt reference to the event (QEvent) |
1343 @return flag indicating, if the event was handled (boolean) |
1343 @return flag indicating, if the event was handled (boolean) |
1344 """ |
1344 """ |
1345 if evt.type() == QEvent.Gesture: |
1345 if evt.type() == QEvent.Gesture: |