Add Qt 6 support

Tested only on Linux so far
This commit is contained in:
Ilya Fedin
2021-10-19 17:00:21 +04:00
committed by John Preston
parent ea10cf5758
commit 847c01d605
154 changed files with 382 additions and 339 deletions
@@ -232,7 +232,7 @@ void ResolveDocument(
location.accessDisable();
});
const auto path = location.name();
if (Core::MimeTypeForFile(path).name().startsWith("image/")
if (Core::MimeTypeForFile(QFileInfo(path)).name().startsWith("image/")
&& QImageReader(path).canRead()) {
showDocument();
return true;