Debugger/WatchPointModel.py

changeset 531
26efb720a299
parent 460
6a3899e91d76
child 791
9ec2ac20e54e
--- a/Debugger/WatchPointModel.py	Mon Aug 30 11:05:37 2010 +0200
+++ b/Debugger/WatchPointModel.py	Mon Aug 30 12:30:29 2010 +0200
@@ -44,7 +44,7 @@
         
         @return column count (integer)
         """
-        return len(self.header) + 1
+        return len(self.header)
     
     def rowCount(self, parent = QModelIndex()):
         """
@@ -69,8 +69,16 @@
         if not index.isValid():
             return None
         
-        if role == Qt.DisplayRole or role == Qt.ToolTipRole:
-            if index.column() < len(self.header):
+        if role == Qt.DisplayRole:
+            if index.column() in [0, 1, 4]:
+                return self.watchpoints[index.row()][index.column()]
+        
+        if role == Qt.CheckStateRole:
+            if index.column() in [2, 3]:
+                return self.watchpoints[index.row()][index.column()]
+        
+        if role == Qt.ToolTipRole:
+            if index.column() in [0, 1]:
                 return self.watchpoints[index.row()][index.column()]
         
         if role == Qt.TextAlignmentRole:

eric ide

mercurial