D26543: Unbreak the KNSQuick::Engine::changedEntries functionality
David Edmundson
noreply at phabricator.kde.org
Wed Jan 15 18:34:23 GMT 2020
davidedmundson added inline comments.
INLINE COMMENTS
> quickengine.h:54
> Q_PROPERTY(QString searchTerm READ searchTerm WRITE setSearchTerm RESET resetSearchTerm NOTIFY searchTermChanged)
> - Q_PROPERTY(KNSCore::EntryInternal::List changedEntries READ changedEntries RESET resetChangedEntries NOTIFY changedEntriesChanged)
> + Q_PROPERTY(QQmlListProperty<QObject> changedEntries READ changedEntries NOTIFY changedEntriesChanged)
> Q_PROPERTY(int changedEntriesCount READ changedEntriesCount NOTIFY changedEntriesChanged)
Why QObject here?
One of the main advantages of using QQmlListProperty over QList<QObject*> is that you can specify the derived type.
REPOSITORY
R304 KNewStuff
REVISION DETAIL
https://phabricator.kde.org/D26543
To: leinir, #frameworks, #plasma, ngraham, broulik, mart
Cc: davidedmundson, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200115/afe0e92d/attachment-0001.html>
More information about the Kde-frameworks-devel
mailing list