File indexing completed on 2025-02-02 04:14:59

0001 /*
0002  *  SPDX-FileCopyrightText: 2006-2010 Thomas Zander <zander@kde.org>
0003  *  SPDX-License-Identifier: GPL-2.0-or-later
0004  */
0005 #ifndef TestPosition_H
0006 #define TestPosition_H
0007 
0008 #include <QObject>
0009 
0010 class KoShape;
0011 class KoShapeContainer;
0012 
0013 class TestPosition : public QObject
0014 {
0015     Q_OBJECT
0016 public:
0017     TestPosition();
0018 
0019 private Q_SLOTS:
0020     void init(); // will be called before each testfunction is executed.
0021     void cleanup();  // will be called after each testfunction is executed.
0022 
0023     // tests
0024     void testBasePosition();
0025     void testAbsolutePosition();
0026     void testSetAbsolutePosition();
0027     void testSetAbsolutePosition2();
0028     void testSetAndGetRotation();
0029 
0030 private:
0031     void resetValues();
0032     void resetValues(KoShape *shape);
0033 
0034     // vars
0035     KoShape *shape1, *shape2, *childShape1, *childShape2;
0036     KoShapeContainer *container, *container2;
0037 };
0038 
0039 #endif