From b9b1829dbc50534190c8b81f91ee477af6971834 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sun, 14 Sep 2014 14:11:26 +0200 Subject: addign watch properties, starting notification work --- src/widgetinfomodel.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/widgetinfomodel.cpp') 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 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; -- cgit v1.2.3