Project/ProjectBaseBrowser.py

changeset 458
1695e7a2db54
parent 248
f4561c24989a
child 500
c3abc7895a01
--- a/Project/ProjectBaseBrowser.py	Thu Aug 05 08:39:56 2010 +0200
+++ b/Project/ProjectBaseBrowser.py	Fri Aug 06 12:39:40 2010 +0200
@@ -54,8 +54,7 @@
             QItemSelectionModel.Deselect | QItemSelectionModel.Rows)
         
         self.setContextMenuPolicy(Qt.CustomContextMenu)
-        self.connect(self, SIGNAL("customContextMenuRequested(const QPoint &)"),
-                     self._contextMenuRequested)
+        self.customContextMenuRequested.connect(self._contextMenuRequested)
         self.connect(self, SIGNAL("activated(const QModelIndex &)"), self._openItem)
         self.connect(self._model, SIGNAL("rowsInserted(const QModelIndex &, int, int)"),
                      self.__modelRowsInserted)

eric ide

mercurial