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: 2007 Boudewijn Rempt <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef KISPRESCALED_PROJECTION_TEST_H
#define KISPRESCALED_PROJECTION_TEST_H
#include <simpletest.h>
class KisPrescaledProjection;
class KoZoomHandler;
class QString;
class KisPrescaledProjectionTest : public QObject
{
Q_OBJECT
private:
/**
* test the projection through a normal, but complicated scenario.
* The prefix is used to save the result qimages and compare them
* to the prepared correct images.
*/
bool testProjectionScenario(KisPrescaledProjection & projection, KoZoomHandler * viewConverter, const QString & name);
private Q_SLOTS:
void testCreation();
// Doesn't fail yet, but at least writes out several versions
// of a scaled image. Make them compare with the results when
// we're done and have everything okay for regressions
void testScalingUndeferredSmoothingPixelForPixel();
void testScalingUndeferredSmoothing();
void benchmarkUpdate();
void testScrollingZoom100();
void testScrollingZoom50();
void testUpdates();
void testQtScaling();
};
#endif