51 eric (boolean) |
51 eric (boolean) |
52 @param initShortcutsOnly flag indicating to just initialize the |
52 @param initShortcutsOnly flag indicating to just initialize the |
53 keyboard shortcuts (boolean) |
53 keyboard shortcuts (boolean) |
54 @param project reference to the project object (Project) |
54 @param project reference to the project object (Project) |
55 """ |
55 """ |
56 super(IconEditorWindow, self).__init__(parent) |
56 super().__init__(parent) |
57 self.setObjectName("eric6_icon_editor") |
57 self.setObjectName("eric6_icon_editor") |
58 |
58 |
59 self.fromEric = fromEric |
59 self.fromEric = fromEric |
60 self.initShortcutsOnly = initShortcutsOnly |
60 self.initShortcutsOnly = initShortcutsOnly |
61 self.setWindowIcon(UI.PixmapCache.getIcon("iconEditor")) |
61 self.setWindowIcon(UI.PixmapCache.getIcon("iconEditor")) |
1382 """ |
1382 """ |
1383 if evt.type() == QEvent.Type.Gesture: |
1383 if evt.type() == QEvent.Type.Gesture: |
1384 self.gestureEvent(evt) |
1384 self.gestureEvent(evt) |
1385 return True |
1385 return True |
1386 |
1386 |
1387 return super(IconEditorWindow, self).event(evt) |
1387 return super().event(evt) |
1388 |
1388 |
1389 def gestureEvent(self, evt): |
1389 def gestureEvent(self, evt): |
1390 """ |
1390 """ |
1391 Protected method handling gesture events. |
1391 Protected method handling gesture events. |
1392 |
1392 |