D8367: Hidding place groups implementation in KFilePlacesModel
Kevin Ottens
noreply at phabricator.kde.org
Thu Nov 2 10:42:35 UTC 2017
ervin requested changes to this revision.
ervin added a comment.
This revision now requires changes to proceed.
Couple more changes needed.
INLINE COMMENTS
> kfileplacesmodel.cpp:79-83
> +//static const QHash<KFilePlacesModel::GroupType, QString> s_groupTypeToStateName
> +//{
> +// return *s_groupTypeToStateName;
> +//}
> +
This can go away now
> kfileplacesmodel.h:71-72
> bool isHidden(const QModelIndex &index) const;
> + bool isPlaceGroupHidden(const GroupType type) const;
> + bool isPlaceGroupHidden(const QModelIndex &index) const;
> bool isDevice(const QModelIndex &index) const;
Just realized now that it'd better be named "isGroupHidden". Otherwise it'll get confusing (especially since one of the types is "PlacesType"!)
> kfileplacesmodel.h:89
> void setPlaceHidden(const QModelIndex &index, bool hidden);
> + void setPlaceGroupHidden(const GroupType type, bool hidden);
>
Likewise: setGroupHidden.
REVISION DETAIL
https://phabricator.kde.org/D8367
To: mlaurent, renatoo, ngraham, franckarrecot, ervin
Cc: ngraham, mlaurent, #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20171102/b7dcdb83/attachment-0001.html>
More information about the Kde-frameworks-devel
mailing list