D26447: Dynamically show and hide based on whether or not any vaults are configured
Kai Uwe Broulik
noreply at phabricator.kde.org
Sun Jan 5 23:41:50 GMT 2020
broulik added inline comments.
INLINE COMMENTS
> vaultsmodel.cpp:103
>
> + if (vaultKeys.size() > 0) {
> + emit q->countChanged(vaultKeys.size());
You probably want to remember the old count and emit when it's different. The model could have been full and become empty after all.
> vaultsmodel.h:45
>
> int rowCount(const QModelIndex &parent) const override;
>
If you give `parent` a default argument you can just use that in your property rather than adding a dedicated `count` method
REPOSITORY
R845 Plasma Vault
REVISION DETAIL
https://phabricator.kde.org/D26447
To: ngraham, broulik, ivan, #plasma, #vdg
Cc: plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20200105/f146848e/attachment-0001.html>
More information about the Plasma-devel
mailing list