Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Fix thumbnail fetching in KisResourceQueryMapper
Dmitry Kazakov7febe785d742
diff --git a/libs/resources/KisResourceQueryMapper.cpp b/libs/resources/KisResourceQueryMapper.cppindex 671a4721e1..2e8aee5847 100644--- a/libs/resources/KisResourceQueryMapper.cpp+++ b/libs/resources/KisResourceQueryMapper.cpp@@ -180,7 +180,7 @@ QVariant KisResourceQueryMapper::variantFromResourceQuery(const QSqlQuery &querycase Qt::ToolTipRole:Q_FALLTHROUGH();case Qt::WhatsThisRole:- return query.value("tooltip");+ return query.value(useResourcePrefix ? "resource_tooltip" : "tooltip");case Qt::UserRole + KisAbstractResourceModel::Id:return query.value(useResourcePrefix ? "resource_id" : "id");case Qt::UserRole + KisAbstractResourceModel::StorageId: