changeset 198:cab015969047

don't need these changes in D1
author eldar
date Mon, 13 Jul 2009 11:41:33 +0000
parents 4536633518e1
children 2375b990b3c4
files demos/interview/model.d
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/demos/interview/model.d	Mon Jul 13 11:39:10 2009 +0000
+++ b/demos/interview/model.d	Mon Jul 13 11:41:33 2009 +0000
@@ -81,7 +81,7 @@
     }
 
 
-    QModelIndex index(int row, int column, const QModelIndex parent)
+    QModelIndex index(int row, int column, QModelIndex parent)
     {
         if (row < rc && row >= 0 && column < cc && column >= 0) {
             Node p = cast(Node) parent.internalPointer();
@@ -92,7 +92,7 @@
         return QModelIndex();
     }
 
-    QModelIndex parent(const QModelIndex child)
+    QModelIndex parent(QModelIndex child)
     {
         if (child.isValid()) {
             Node n = cast(Node) child.internalPointer();
@@ -103,17 +103,17 @@
         return QModelIndex();
     }
 
-    int rowCount(const QModelIndex parent)
+    int rowCount(QModelIndex parent)
     {
         return (parent.isValid() && parent.column() != 0) ? 0 : rc;
     }
 
-    int columnCount(const QModelIndex parent)
+    int columnCount(QModelIndex parent)
     {
         return cc;
     }
     
-    QVariant data(const QModelIndex index, int role)
+    QVariant data(QModelIndex index, int role)
     {
         if (!index.isValid)
             return new QVariant;
@@ -137,14 +137,14 @@
         return QAbstractItemModel.headerData(section, orientation, role);
     }
 
-    bool hasChildren(const QModelIndex parent)
+    bool hasChildren(QModelIndex parent)
     {
         if (parent.isValid && parent.column != 0)
             return false;
         return rc > 0 && cc > 0;
     }
     
-    int flags(const QModelIndex index)
+    int flags(QModelIndex index)
     {
         if (!index.isValid)
             return 0;