diff options
author | Javier S. Pedro <dev.git@javispedro.com> | 2014-09-14 14:11:26 +0200 |
---|---|---|
committer | Javier S. Pedro <dev.git@javispedro.com> | 2014-09-14 14:11:26 +0200 |
commit | b9b1829dbc50534190c8b81f91ee477af6971834 (patch) | |
tree | 360f09061f43a247a5afdc2c83df2b9a03d86a4a /src/widgetinfomodel.cpp | |
parent | 85fb48bc51fed06a50b6178727fdf9e96aea4fc4 (diff) | |
download | salmeta-b9b1829dbc50534190c8b81f91ee477af6971834.tar.gz salmeta-b9b1829dbc50534190c8b81f91ee477af6971834.zip |
addign watch properties, starting notification work
Diffstat (limited to 'src/widgetinfomodel.cpp')
-rw-r--r-- | src/widgetinfomodel.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/widgetinfomodel.cpp b/src/widgetinfomodel.cpp index 6c4d5d2..e2f145f 100644 --- a/src/widgetinfomodel.cpp +++ b/src/widgetinfomodel.cpp @@ -64,6 +64,11 @@ QVariant WidgetInfoModel::data(const QModelIndex &index, int role) const } } +QList<WidgetInfo> WidgetInfoModel::toList() const +{ + return _widgets.toList(); +} + void WidgetInfoModel::reload() { beginResetModel(); @@ -165,7 +170,6 @@ void WidgetInfoModel::handleSettingChanged(const QString &key) } const QModelIndex index = createIndex(slot, 0); - qDebug() << "Data changed" << slot << roles.at(0); emit dataChanged(index, index, roles); } else { qWarning() << "Unknown widget key changed:" << key; |