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++
977 B
Raw Blame
/*
 * SPDX-FileCopyrightText: 2018 Boudewijn Rempt <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */
#ifndef TESTTAGMODEL_H
#define TESTTAGMODEL_H

#include <QObject>

#include "KisResourceTypes.h"
#include "KisTag.h"

class KisResourceLocator;
class TestTagModel : public QObject
{
    Q_OBJECT
private Q_SLOTS:
    void initTestCase();

    void testWithTagModelTester();

    void testRowCount();
    void testData();
    void testIndexForTag();
    void testTagForIndex();
    void testTagForUrl();
    void testAddEmptyTag();
    void testAddTag();
    void testSetTagActiveInactive();
    void testRenameTag();
    void testChangeTagActive();

    void testAddEmptyTagWithResources();
    void testAddTagWithResources();


    void cleanupTestCase();
private:

    QString m_srcLocation;
    QString m_dstLocation;

    KisTagSP m_tag;

    KisResourceLocator *m_locator;
    const QString m_resourceType = ResourceType::PaintOpPresets;

};

#endif