diff options
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; |