aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/widgetgrid
diff options
context:
space:
mode:
authorDaniel d'Andrada <daniel.dandrada@luxoft.com>2017-11-21 15:30:02 +0100
committerDaniel d'Andrada <daniel.dandrada@luxoft.com>2018-02-28 15:58:04 +0100
commit184b891d1e45715472f1cac441273190f133a622 (patch)
tree3d7a47db28567a0a6af95600cdaa0cea7b6800e2 /plugins/widgetgrid
parentc24964dc18ef668930bcb0c6516a29b1537abbe1 (diff)
Move application run state handling down to C++
And fix the case where after removing and then adding the same widget again you were no longer able to activate it by clicking on its window area + remove code related to applicationSurfaceReady signal as that's not used anywhere anymore
Diffstat (limited to 'plugins/widgetgrid')
-rw-r--r--plugins/widgetgrid/WidgetListModel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/widgetgrid/WidgetListModel.cpp b/plugins/widgetgrid/WidgetListModel.cpp
index 26713102..d625d34d 100644
--- a/plugins/widgetgrid/WidgetListModel.cpp
+++ b/plugins/widgetgrid/WidgetListModel.cpp
@@ -107,7 +107,9 @@ void WidgetListModel::setApplicationModel(QAbstractItemModel *appModel)
connect(appModel, &QAbstractItemModel::modelReset, this,
[this]()
{
+ setPopulating(true);
trackRowsFromApplicationModel(0, m_applicationModel->rowCount() - 1);
+ setPopulating(false);
m_resetting = false;
endResetModel();
});