Commit be421fa8 authored by Marco Martin's avatar Marco Martin
Browse files

emit countChanged when we get a new source model

the source model is set asyncronously so onComponentcomplete count is 0, and when the proper source is set the notify is not emitted. furthermore the source canchange at runtime, so count needs to be reevaluated every time this happens
parent fc19150c
......@@ -1024,6 +1024,8 @@ TasksModel::TasksModel(QObject *parent)
// Start sorting.
connect(this, &TasksModel::sourceModelChanged, this, &TasksModel::countChanged);
// Private::updateGroupInline() sets our source model, populating the model. We
// delay running this until the QML runtime had a chance to call our implementation
// of QQmlParserStatus::classBegin(), setting Private::usedByQml to true. If used
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment