diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2012-08-09 21:02:14 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2012-08-09 21:02:14 +0200 |
commit | b1ccb04d7dd2fb20def829be084474ed329d4988 (patch) | |
tree | a554f1684c12adc1d0420158c98860cdec214dee /sowatchui/watchscannermodel.cpp | |
parent | eb8ffec84e1d81df9ffb1004158da23183e96f17 (diff) | |
download | sowatch-b1ccb04d7dd2fb20def829be084474ed329d4988.tar.gz sowatch-b1ccb04d7dd2fb20def829be084474ed329d4988.zip |
change config of enabled/disabled
Diffstat (limited to 'sowatchui/watchscannermodel.cpp')
-rw-r--r-- | sowatchui/watchscannermodel.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sowatchui/watchscannermodel.cpp b/sowatchui/watchscannermodel.cpp index 8dd8d1e..f2c76f7 100644 --- a/sowatchui/watchscannermodel.cpp +++ b/sowatchui/watchscannermodel.cpp @@ -8,6 +8,7 @@ WatchScannerModel::WatchScannerModel(QObject *parent) : { QHash<int, QByteArray> roles = roleNames(); roles[Qt::DisplayRole] = QByteArray("title"); + roles[Qt::DecorationRole] = QByteArray("iconSource"); roles[Qt::StatusTipRole] = QByteArray("subtitle"); roles[ObjectRole] = QByteArray("object"); setRoleNames(roles); @@ -58,6 +59,8 @@ QVariant WatchScannerModel::data(const QModelIndex &index, int role) const switch (role) { case Qt::DisplayRole: return info["name"]; + case Qt::DecorationRole: + return QVariant(SOWATCH_RESOURCES_DIR "/sowatch64.png"); case Qt::StatusTipRole: return info["address"]; case ObjectRole: |