D19098: Add PropertyMap to QVariantMap conversion function using names
Stefan BrĂ¼ns
noreply at phabricator.kde.org
Mon Feb 18 22:17:13 GMT 2019
bruns added a comment.
In D19098#414729 <https://phabricator.kde.org/D19098#414729>, @astippich wrote:
> It already does at two different places, because it fuses different information into a single QMap later on (xattr, file size etc...)
> https://phabricator.kde.org/source/baloo-widgets/browse/master/src/extractor.cpp$65
> https://phabricator.kde.org/source/baloo-widgets/browse/master/src/filefetchjob.cpp$62
This can be done by using a KFM::PropertyMap directly, and adding property types for the UserMetaData (tags, comment, rating). Note, the strings returned by PropertyInfo::name() are not shared ...
> I would like to consolidate the two different implementations of the conversion functions. I think it is also useful for debugging purposes, e.g. dumping a property map to cmd line.
The latter can be achieved by making KFM::Property known to QDebug.
REPOSITORY
R286 KFileMetaData
REVISION DETAIL
https://phabricator.kde.org/D19098
To: astippich, bruns, ngraham
Cc: kde-frameworks-devel, #baloo, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190218/f5c671b7/attachment-0001.html>
More information about the Kde-frameworks-devel
mailing list