Implement QQmlParserStatus in FolderModel
ClosedPublic

Authored by hein on Dec 3 2017, 11:36 AM.

Details

Summary

This saves four calls to invalidateFilter() during startup with
default config. With non-default config it will save various
calls to invalidate() and invalidateFilter() more.

Test Plan

Tests pass with adjustments.

Diff Detail

Repository
R119 Plasma Desktop
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
hein created this revision.Dec 3 2017, 11:36 AM
Restricted Application added a project: Plasma. · View Herald TranscriptDec 3 2017, 11:36 AM
hein requested review of this revision.Dec 3 2017, 11:36 AM
hein updated this revision to Diff 23321.Dec 3 2017, 11:40 AM

Remove a stray qDebug line.

+1

containments/desktop/plugins/folder/foldermodel.h
79–80

Add Q_INTERFACES(QQmlParserStatus)

hein updated this revision to Diff 23323.Dec 3 2017, 11:49 AM

Add interface

This revision was automatically updated to reflect the committed changes.
hein added a comment.Dec 3 2017, 5:54 PM

I accidentally pushed this, but given Kai's earlier comment I think this was OK. Please double-check if necessary.

It's not my day with command line tools I think :-)