[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyKDE] [ERIC3][PATCH] Third try
From:       Stephan Jaensch <sjaensch () gmx ! net>
Date:       2002-12-19 17:27:40
[Download RAW message or body]

Hi,

this is getting embarassing. Forgot to diff the second file, too...

Ciao...
["eric-openOnDoubleClick.patch" (text/x-diff)]

diff -u -r eric-orig/Browser.py eric/Browser.py
--- eric-orig/Browser.py	Thu Dec 19 18:20:35 2002
+++ eric/Browser.py	Thu Dec 19 18:10:39 2002
@@ -373,7 +373,7 @@
         ))
                       
         self.createPopupMenus()
-        
+
     def createPopupMenus(self):
         """
         Private method to generate the various popup menus
@@ -420,7 +420,7 @@
         """
         Private slot to handle the open popup menu entry
         """
-        itm = self.currItem
+        itm = self.currentItem()
         
         try:
             if isinstance(itm, BrowserFile):
diff -u -r eric-orig/ProjectBrowser.py eric/ProjectBrowser.py
--- eric-orig/ProjectBrowser.py	Thu Dec 19 18:20:35 2002
+++ eric/ProjectBrowser.py	Thu Dec 19 15:51:02 2002
@@ -108,6 +108,8 @@
         self.connect(self,SIGNAL('contextMenuRequested(QListViewItem *, const QPoint &, int)'),
                      self.handleContextMenu)
 
+        self.connect(self, SIGNAL('doubleClicked(QListViewItem *)'), self.handleOpen)
+
         req = QSize(250,350)
 
         if parent is not None:


_______________________________________________
PyKDE mailing list    PyKDE@mats.gmd.de
http://mats.gmd.de/mailman/listinfo/pykde

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic