taskswitcher/tsdevicedialogplugin/inc/tsmodel.h
changeset 127 7b66bc3c6dc9
parent 125 26079c1bb561
--- a/taskswitcher/tsdevicedialogplugin/inc/tsmodel.h	Wed Oct 13 12:59:22 2010 +0300
+++ b/taskswitcher/tsdevicedialogplugin/inc/tsmodel.h	Mon Oct 18 10:44:15 2010 +0300
@@ -41,7 +41,8 @@
     QVariant data(const QModelIndex &index,
                   int role = Qt::DisplayRole) const;
     // from QAbstractModel
-    virtual bool insertRows(int row, int count, TsModelItem *item,
+    virtual bool insertRows(int row, int count,
+                            QScopedPointer<TsModelItem> &item,
                             const QModelIndex &parent = QModelIndex());
     virtual bool removeRows(int row, int count,
                             const QModelIndex &parent = QModelIndex());
@@ -49,7 +50,7 @@
 
     bool moveRows(int oldPosition, int newPosition,
                   const QModelIndex &parent = QModelIndex());
-    bool updateRows(int row, TsModelItem *item);
+    bool updateRows(int row, QScopedPointer<TsModelItem> &item);
     void fullUpdate();
 
 public slots: