Qt creator 2 adaptations
[family-shop-mgr] / code / family-shop-mgr / model / ShoppingTreeModel.h
index 4c54931..3b6c974 100644 (file)
@@ -58,8 +58,8 @@ public:
     bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole);\r
 \r
 public slots:\r
-    bool addCategory(QModelIndex & index, QString name = QString());\r
-    bool addItem(QModelIndex & index, QString name = QString());\r
+    bool addCategory(const QModelIndex & index, QString name = QString());\r
+    bool addItem(const QModelIndex & index, QString name = QString());\r
     bool removeElement(QModelIndex & index);\r
     void save();\r
 \r