415 self.__backMenu.addAction(self.trUtf8("Help about Templates..."), self.__showHelp) |
415 self.__backMenu.addAction(self.trUtf8("Help about Templates..."), self.__showHelp) |
416 self.__backMenu.addSeparator() |
416 self.__backMenu.addSeparator() |
417 self.__backMenu.addAction(self.trUtf8("Configure..."), self.__configure) |
417 self.__backMenu.addAction(self.trUtf8("Configure..."), self.__configure) |
418 |
418 |
419 self.setContextMenuPolicy(Qt.CustomContextMenu) |
419 self.setContextMenuPolicy(Qt.CustomContextMenu) |
420 self.connect(self, SIGNAL("customContextMenuRequested(const QPoint &)"), |
420 self.customContextMenuRequested.connect(self.__showContextMenu) |
421 self.__showContextMenu) |
|
422 self.connect(self, SIGNAL("itemActivated(QTreeWidgetItem *, int)"), |
421 self.connect(self, SIGNAL("itemActivated(QTreeWidgetItem *, int)"), |
423 self.__templateItemActivated) |
422 self.__templateItemActivated) |
424 |
423 |
425 self.setWindowIcon(UI.PixmapCache.getIcon("eric.png")) |
424 self.setWindowIcon(UI.PixmapCache.getIcon("eric.png")) |
426 |
425 |