QScintilla/MiniEditor.py

changeset 458
1695e7a2db54
parent 454
d28d558f7484
child 461
34528aaedf1c
diff -r 608a9c14f4c9 -r 1695e7a2db54 QScintilla/MiniEditor.py
--- a/QScintilla/MiniEditor.py	Thu Aug 05 08:39:56 2010 +0200
+++ b/QScintilla/MiniEditor.py	Fri Aug 06 12:39:40 2010 +0200
@@ -164,9 +164,7 @@
                      self.__cursorPositionChanged)
         
         self.__textEdit.setContextMenuPolicy(Qt.CustomContextMenu)
-        self.connect(self.__textEdit, 
-                     SIGNAL("customContextMenuRequested(const QPoint &)"),
-                     self.__contextMenuRequested)
+        self.__textEdit.customContextMenuRequested.connect(self.__contextMenuRequested)
         
         self.connect(self.__textEdit, 
                      SIGNAL("selectionChanged()"), 
@@ -2298,4 +2296,4 @@
         fileEol = self.__textEdit.detectEolString(txt)
         self.__textEdit.setEolModeByEolString(fileEol)
         
-        self.__textEdit.setModified(False)
\ No newline at end of file
+        self.__textEdit.setModified(False)

eric ide

mercurial