Skip to content

armgit / krita

Public Imported from GitHub
0

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++
653 B
Raw Blame
/*
 *  SPDX-License-Identifier: GPL-3.0-or-later
 */

#ifndef KISRESOURCEQUERYMAPPER_H
#define KISRESOURCEQUERYMAPPER_H

#include <QSqlQuery>
#include <QMap>

class QImage;

class KisResourceQueryMapper
{
public:
    /**
     * @brief variantFromResourceQuery returns a QVariant for the given column and or role
     * @param query the query: it supposed to be in the right position already
     */
    static QVariant variantFromResourceQuery(const QSqlQuery &query, int column, int role, bool useResourcePrefix);

private:
    static QImage getThumbnailFromQuery(const QSqlQuery &query, bool useResourcePrefix);
};

#endif // KISRESOURCEQUERYMAPPER_H