- Timestamp:
- 04/30/10 02:53:15 (2 years ago)
- Children:
- acf43d008d077e46c8915fc1a184b56ffea0dac1
- Parents:
- 8d7196fb48bcec3bf822911c6aaff79b2b90cda4
- git-committer:
- Luper Rouch <luper.rouch@…> (04/30/10 02:53:15)
- File:
-
- 1 edited
-
pyflu/pyflu/qt/views/treenode_view.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pyflu/pyflu/qt/views/treenode_view.py
re17ef59 r70bb1cc 1 from PyQt4.QtCore import *2 from PyQt4.QtGui import *1 from PyQt4.QtCore import Qt, SIGNAL 2 from PyQt4.QtGui import QTreeView, QAction, QMenu, QMessageBox 3 3 import louie 4 4 … … 15 15 TreeNodeView subclasses can define any context menu action, the method of 16 16 the same name in the subclass will be used as the action's callback. 17 """18 19 error_signal = None20 """21 This has to be defined in subclasses and must be a subclass of22 louie.Signal.23 17 """ 24 18 … … 49 43 return QTreeView.keyReleaseEvent(self, event) 50 44 51 def setModel(self, model):52 louie.connect(self.model_error, self.error_signal, model)53 return QTreeView.setModel(self, model)54 55 45 # Other methods 56 46 … … 76 66 77 67 def delete(self): 68 """ 69 Delete the currently selected item. 70 """ 78 71 index = self.currentIndex() 79 72 if not index.isValid():
Note: See TracChangeset
for help on using the changeset viewer.
