Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
4#ifndef QQUICKFLIPABLE_P_H
5#define QQUICKFLIPABLE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <private/qtquickglobal_p.h>
19
20QT_REQUIRE_CONFIG(quick_flipable);
21
22#include "qquickitem.h"
23
24#include <QtGui/qtransform.h>
25#include <QtGui/qvector3d.h>
26#include <QtCore/qobject.h>
27
29
31class Q_QUICK_EXPORT QQuickFlipable : public QQuickItem
32{
34
35 Q_PROPERTY(QQuickItem *front READ front WRITE setFront NOTIFY frontChanged)
36 Q_PROPERTY(QQuickItem *back READ back WRITE setBack NOTIFY backChanged)
37 Q_PROPERTY(Side side READ side NOTIFY sideChanged)
38 QML_NAMED_ELEMENT(Flipable)
40 //### flipAxis
41 //### flipRotation
42public:
43 QQuickFlipable(QQuickItem *parent=nullptr);
45
46 QQuickItem *front() const;
47 void setFront(QQuickItem *);
48
49 QQuickItem *back();
50 void setBack(QQuickItem *);
51
52 enum Side { Front, Back };
53 Q_ENUM(Side)
54 Side side() const;
55
60
61protected:
62 void updatePolish() override;
63
64private Q_SLOTS:
65 void retransformBack();
66
67private:
68 Q_DISABLE_COPY(QQuickFlipable)
69 Q_DECLARE_PRIVATE(QQuickFlipable)
70};
71
73
74#endif // QQUICKFLIPABLE_P_H
void sideChanged()
void frontChanged()
void backChanged()
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
Combined button and popup list for selecting options.
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define QT_REQUIRE_CONFIG(feature)
#define Q_ENUM(x)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SLOTS
#define Q_SIGNALS