summaryrefslogtreecommitdiffstats
path: root/test-app/gui_types.h
blob: 7b5888a74fced49db86f035fb93c05dd426395dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (C) 2025 The Qt Company Ltd.
// SPDX-License-Identifier: MIT

#include <QtGui>

class GuiTypes : public QObject
{
    Q_OBJECT

public:
    using QObject::QObject;

    QBitmap qBitmap = QBitmap(":/qt.png");
    QBrush qBrush = QBrush();
    QCursor qCursor = QCursor();
    QFont qFont = QFont();
    QImage qImage = QImage(":/qt.png");
    QKeySequence qKeySequence = QKeySequence(Qt::CTRL + Qt::Key_Q);
    QMatrix4x4 qMatrix4x4 = QMatrix4x4();
    QPalette qPalette = QPalette();
    QPen qPen = QPen();
    QPicture qPicture = QPicture();
    QPixmap qPixmap = QPixmap(":/qt.png");
    QPolygon qPolygon = QPolygon({QPoint(0, 0), QPoint(42, 0), QPoint(42, 42), QPoint(0, 42)});
    QPolygonF qPolygonF = QPolygonF({QPointF(0.5, 0.5), QPointF(4.2, 0.5), QPointF(4.2, 4.2), QPointF(0.5, 4.2)});
    QQuaternion qQuaternion = QQuaternion(0., 0., 0., 1.);
    QRegion qRegion = QRegion();
    QTransform qTransform = QTransform();
    QVector2D qVector2D = QVector2D(42., 43.);
    QVector3D qVector3D = QVector3D(42., 43., 44.);
    QVector4D qVector4D = QVector4D(42., 43., 44., 45.);
};