src/eric7/Templates/TemplateViewer.py

branch
eric7
changeset 10069
435cc5875135
parent 9786
f94b530722af
child 10192
f457742dd3d6
--- a/src/eric7/Templates/TemplateViewer.py	Thu May 25 11:12:05 2023 +0200
+++ b/src/eric7/Templates/TemplateViewer.py	Thu May 25 19:51:47 2023 +0200
@@ -12,7 +12,7 @@
 import pathlib
 import re
 
-from PyQt6.QtCore import QCoreApplication, QFile, QIODevice, Qt
+from PyQt6.QtCore import QCoreApplication, QFile, QIODevice, Qt, pyqtSlot
 from PyQt6.QtWidgets import QApplication, QDialog, QMenu, QTreeWidget, QTreeWidgetItem
 
 from eric7 import Globals, Preferences
@@ -444,6 +444,8 @@
         """
         self.sortItems(self.sortColumn(), self.header().sortIndicatorOrder())
 
+    @pyqtSlot()
+    @pyqtSlot(QTreeWidgetItem, int)
     def __templateItemActivated(self, itm=None, col=0):
         """
         Private slot to handle the activation of an item.

eric ide

mercurial