summaryrefslogtreecommitdiff
path: root/sowatchui/watchletsmodel.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-05-04 01:46:06 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-05-04 01:46:06 +0200
commitc8385121987089af08ad95d28514af4b6dc13603 (patch)
treecc5ddf549d9cebbb77bfe175a9fcfd0276d51a64 /sowatchui/watchletsmodel.cpp
parent8af1436e92c1a853b74bacc9ac0adf012fdbc4ca (diff)
downloadsowatch-c8385121987089af08ad95d28514af4b6dc13603.tar.gz
sowatch-c8385121987089af08ad95d28514af4b6dc13603.zip
add basic support for settings pages
Diffstat (limited to 'sowatchui/watchletsmodel.cpp')
-rw-r--r--sowatchui/watchletsmodel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/sowatchui/watchletsmodel.cpp b/sowatchui/watchletsmodel.cpp
index d9c8f86..cdc3593 100644
--- a/sowatchui/watchletsmodel.cpp
+++ b/sowatchui/watchletsmodel.cpp
@@ -13,6 +13,7 @@ WatchletsModel::WatchletsModel(QObject *parent) :
roles[Qt::DisplayRole] = QByteArray("title");
roles[Qt::DecorationRole] = QByteArray("iconSource");
roles[NameRole] = QByteArray("name");
+ roles[ConfigQmlUrlRole] = QByteArray("configQmlUrl");
setRoleNames(roles);
}
@@ -28,7 +29,6 @@ QString WatchletsModel::configKey() const
void WatchletsModel::setConfigKey(const QString &configKey)
{
- qDebug() << "Set confgKey" << configKey;
QString oldConfigKey = this->configKey();
if (_config) {
delete _config;
@@ -73,6 +73,8 @@ QVariant WatchletsModel::data(const QModelIndex &index, int role) const
return QVariant::fromValue(_info[id].icon);
case NameRole:
return QVariant::fromValue(id);
+ case ConfigQmlUrlRole:
+ return QVariant::fromValue(_info[id].configQmlUrl);
}
return QVariant();
}