Commit 4f70c0c0 authored by Ahmad Samir's avatar Ahmad Samir
Browse files

KFileMetaData::SimpleExtractionResult::properties() returns a QMultiMap

Implicit conversion from QMap to QMultiMap is gone in Qt6.
parent 8cfeff04
......@@ -347,9 +347,8 @@ void KQuery::processQuery(const KFileItem &file)
KFileMetaData::ExtractionResult::ExtractMetaData);
ex->extract(&result);
KFileMetaData::PropertyMap properties = result.properties();
KFileMetaData::PropertyMap::const_iterator it = properties.constBegin();
for (; it != properties.constEnd(); it++) {
const KFileMetaData::PropertyMultiMap properties = result.properties();
for (auto it = properties.cbegin(); it != properties.cend(); ++it) {
if (!metaKeyRx.exactMatch(KFileMetaData::PropertyInfo(it.key()).displayName())) {
continue;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment