Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquickflipable_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QQUICKFLIPABLE_P_H
6#define QQUICKFLIPABLE_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <private/qtquickglobal_p.h>
20
22
23#include "qquickitem.h"
24
25#include <QtGui/qtransform.h>
26#include <QtGui/qvector3d.h>
27#include <QtCore/qobject.h>
28
30
32class Q_QUICK_EXPORT QQuickFlipable : public QQuickItem
33{
34 Q_OBJECT
35
36 Q_PROPERTY(QQuickItem *front READ front WRITE setFront NOTIFY frontChanged)
37 Q_PROPERTY(QQuickItem *back READ back WRITE setBack NOTIFY backChanged)
38 Q_PROPERTY(Side side READ side NOTIFY sideChanged)
39 QML_NAMED_ELEMENT(Flipable)
40 QML_ADDED_IN_VERSION(2, 0)
41 //### flipAxis
42 //### flipRotation
43public:
44 QQuickFlipable(QQuickItem *parent=nullptr);
45 ~QQuickFlipable();
46
47 QQuickItem *front() const;
48 void setFront(QQuickItem *);
49
50 QQuickItem *back();
51 void setBack(QQuickItem *);
52
53 enum Side { Front, Back };
54 Q_ENUM(Side)
55 Side side() const;
56
57Q_SIGNALS:
58 void frontChanged();
59 void backChanged();
60 void sideChanged();
61
62protected:
63 void updatePolish() override;
64
65private Q_SLOTS:
66 void retransformBack();
67
68private:
69 Q_DISABLE_COPY(QQuickFlipable)
70 Q_DECLARE_PRIVATE(QQuickFlipable)
71};
72
73QT_END_NAMESPACE
74
75#endif // QQUICKFLIPABLE_P_H
QPointer< QQuickItem > back
QPointer< QQuickItem > front
QPointer< QQuickLocalTransform > backTransform
QT_REQUIRE_CONFIG(quick_flipable)