diff options
author | Tasuku Suzuki <tasuku.suzuki@qt.io> | 2017-05-23 14:24:35 +0900 |
---|---|---|
committer | Tasuku Suzuki <tasuku.suzuki@qt.io> | 2017-05-23 14:51:05 +0900 |
commit | e412b716601f96466ca786784facb558e28e92e4 (patch) | |
tree | ad6d64f47bcd3ee7db434f2745407fed28b4cb2c /homescreen/src/applicationmodel.h | |
parent | 226982d32f334189b4f465a720a297548a42c077 (diff) |
Add icon re-ordering support by hold and move
Change-Id: Ieb6bf721932e36e4ea69cd56d59019ed8fed13ba
Signed-off-by: Tasuku Suzuki <tasuku.suzuki@qt.io>
Diffstat (limited to 'homescreen/src/applicationmodel.h')
-rw-r--r-- | homescreen/src/applicationmodel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/homescreen/src/applicationmodel.h b/homescreen/src/applicationmodel.h index bffc4c9..2414b7e 100644 --- a/homescreen/src/applicationmodel.h +++ b/homescreen/src/applicationmodel.h @@ -30,6 +30,8 @@ public: QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; QHash<int, QByteArray> roleNames() const override; + Q_INVOKABLE QString id(int index) const; + Q_INVOKABLE void move(int from, int to); private: class Private; |