Source

moneyguru / qt / print_ / item_view.py

Diff from to

File qt/print_/item_view.py

         raise NotImplementedError()
     
     def splitCount(self, rowIndex):
-        return self.printViewModel.split_count_at_row(rowIndex)
+        raise NotImplementedError()
     
     def splitValues(self, rowIndex, splitIndex):
-        return self.printViewModel.split_values(rowIndex, splitIndex)
+        raise NotImplementedError()
     
     def data(self, rowIndex, colIndex, role):
         """Returns model data for the index at the *printable* (rowIndex, colIndex) cell."""
     def rowCount(self):
         return self.table.rowCount(QModelIndex())
     
+    def splitCount(self, rowIndex):
+        return self.printViewModel.split_count_at_row(rowIndex)
+    
+    def splitValues(self, rowIndex, splitIndex):
+        return self.printViewModel.split_values(rowIndex, splitIndex)
+    
     def data(self, rowIndex, colIndex, role):
         index = self.table.index(rowIndex, self.columns[colIndex].logical_index)
         return self.table.data(index, role)
     def rowCount(self):
         return len(self.rows)
     
+    def splitCount(self, rowIndex):
+        return 0
+    
+    def splitValues(self, rowIndex, splitIndex):
+        return None
+    
     def data(self, rowIndex, colIndex, role):
         index = self._getIndex(rowIndex, colIndex)
         return self.tree.data(index, role)