]> cloud.milkyroute.net Git - dolphin.git/commit
[BalooRolesProvider] Use Property IDs instead of string matching
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Mon, 28 Dec 2020 02:23:23 +0000 (03:23 +0100)
committerStefan Brüns <stefan.bruens@rwth-aachen.de>
Mon, 11 Jan 2021 11:28:38 +0000 (12:28 +0100)
commitcade3eb302fcf9144cd538fbd1e506c33dbe3b48
treedfc1de67ba52ec92053876cdcd3231c41af20986
parentdcdf4b01c8b0517ad23b420316e27c8dce9cef82
[BalooRolesProvider] Use Property IDs instead of string matching

Instantiating KFileMetaDataInfo for each file and property, even when
the role is not used, is somewhat expensive and unnecessary. Use the
numeric Property ID to map it to a role, and only instantiate the used
PropertyInfo's.

Remove the properties provided by KFM::UserMetaData from the map, as
these will newer match.
src/kitemviews/private/kbaloorolesprovider.cpp
src/kitemviews/private/kbaloorolesprovider.h