43 |
44 |
44 int rowCount(const QModelIndex &parent = QModelIndex()) const; |
45 int rowCount(const QModelIndex &parent = QModelIndex()) const; |
45 QVariant data(const QModelIndex &index, |
46 QVariant data(const QModelIndex &index, |
46 int role = Qt::DisplayRole) const; |
47 int role = Qt::DisplayRole) const; |
47 int maxRowCount()const; |
48 int maxRowCount()const; |
|
49 // from QAbstractModel |
|
50 virtual bool insertRows(int row, int count, TsModelItem* item, |
|
51 const QModelIndex & parent = QModelIndex()); |
|
52 virtual bool removeRows(int row, int count, |
|
53 const QModelIndex & parent = QModelIndex()); |
|
54 |
|
55 |
|
56 bool moveRows(int oldPosition, int newPosition, |
|
57 const QModelIndex & parent = QModelIndex()); |
|
58 bool updateRows(int row, TsModelItem* item); |
|
59 void fullUpdate(); |
48 |
60 |
49 public slots: |
61 public slots: |
50 void openApplication(const QModelIndex &index); |
62 void openApplication(const QModelIndex &index); |
51 void closeApplication(const QModelIndex &index); |
63 void closeApplication(const QModelIndex &index); |
52 void updateModel(); |
64 void updateApplications(); |
|
65 void updateActivities(); |
53 void entryChanged(TsModelItem *); |
66 void entryChanged(TsModelItem *); |
54 private: |
67 private: |
55 TsModelItem *entry(const QModelIndex &index) const; |
68 TsModelItem *entry(const QModelIndex &index) const; |
56 void getApplications(); |
69 void getApplications(); |
57 void getActivities(); |
70 void getActivities(); |