taskswitcher/tsdevicedialogplugin/inc/tsmodel.h
changeset 127 7b66bc3c6dc9
parent 125 26079c1bb561
equal deleted inserted replaced
126:efda7c0771b9 127:7b66bc3c6dc9
    39 
    39 
    40     int rowCount(const QModelIndex &parent = QModelIndex()) const;
    40     int rowCount(const QModelIndex &parent = QModelIndex()) const;
    41     QVariant data(const QModelIndex &index,
    41     QVariant data(const QModelIndex &index,
    42                   int role = Qt::DisplayRole) const;
    42                   int role = Qt::DisplayRole) const;
    43     // from QAbstractModel
    43     // from QAbstractModel
    44     virtual bool insertRows(int row, int count, TsModelItem *item,
    44     virtual bool insertRows(int row, int count,
       
    45                             QScopedPointer<TsModelItem> &item,
    45                             const QModelIndex &parent = QModelIndex());
    46                             const QModelIndex &parent = QModelIndex());
    46     virtual bool removeRows(int row, int count,
    47     virtual bool removeRows(int row, int count,
    47                             const QModelIndex &parent = QModelIndex());
    48                             const QModelIndex &parent = QModelIndex());
    48 
    49 
    49 
    50 
    50     bool moveRows(int oldPosition, int newPosition,
    51     bool moveRows(int oldPosition, int newPosition,
    51                   const QModelIndex &parent = QModelIndex());
    52                   const QModelIndex &parent = QModelIndex());
    52     bool updateRows(int row, TsModelItem *item);
    53     bool updateRows(int row, QScopedPointer<TsModelItem> &item);
    53     void fullUpdate();
    54     void fullUpdate();
    54 
    55 
    55 public slots:
    56 public slots:
    56     void openApplication(const QModelIndex &index);
    57     void openApplication(const QModelIndex &index);
    57     void closeApplication(const QModelIndex &index);
    58     void closeApplication(const QModelIndex &index);