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++
/*
* SPDX-FileCopyrightText: 2018 boud <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef TESTRESOURCEMODEL_H
#define TESTRESOURCEMODEL_H
#include <QObject>
#include "KisResourceTypes.h"
class KisResourceLocator;
class TestResourceModel : public QObject
{
Q_OBJECT
private Q_SLOTS:
void initTestCase();
void testWithTagModelTester();
void testRowCount();
void testData();
void testResourceForIndex();
void testIndexFromResource();
void testSetInactiveByIndex();
void testImportResourceFile();
void testAddResource();
void testAddTemporaryResource();
void testAddDuplicatedResource();
void testResourceForId();
void testResourceForName();
void testResourceForFileName();
void testResourceForMD5();
void testRenameResource();
void testUpdateResource();
void testTwoExistingResourceModels();
void cleanupTestCase();
private:
QString m_srcLocation;
QString m_dstLocation;
KisResourceLocator *m_locator;
const QString m_resourceType = ResourceType::PaintOpPresets;
};
#endif