Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquickswipeview_p.h
Go to the documentation of this file.
1// Copyright (C) 2017 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 QQUICKSWIPEVIEW_P_H
5#define QQUICKSWIPEVIEW_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 <QtQuickTemplates2/private/qquickcontainer_p.h>
19
21
24
25class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickSwipeView : public QQuickContainer
26{
28 // 2.1 (Qt 5.8)
29 Q_PROPERTY(bool interactive READ isInteractive WRITE setInteractive NOTIFY interactiveChanged FINAL REVISION(2, 1))
30 // 2.2 (Qt 5.9)
31 Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation NOTIFY orientationChanged FINAL REVISION(2, 2))
32 // 2.3 (Qt 5.10)
33 Q_PROPERTY(bool horizontal READ isHorizontal NOTIFY orientationChanged FINAL REVISION(2, 3))
34 Q_PROPERTY(bool vertical READ isVertical NOTIFY orientationChanged FINAL REVISION(2, 3))
35 QML_NAMED_ELEMENT(SwipeView)
38
39public:
40 explicit QQuickSwipeView(QQuickItem *parent = nullptr);
41
42 static QQuickSwipeViewAttached *qmlAttachedProperties(QObject *object);
43
44 // 2.1 (Qt 5.8)
45 bool isInteractive() const;
46 void setInteractive(bool interactive);
47
48 // 2.2 (Qt 5.9)
49 Qt::Orientation orientation() const;
50 void setOrientation(Qt::Orientation orientation);
51
52 // 2.3 (Qt 5.10)
53 bool isHorizontal() const;
54 bool isVertical() const;
55
57 // 2.1 (Qt 5.8)
58 Q_REVISION(2, 1) void interactiveChanged();
59 // 2.2 (Qt 5.9)
60 Q_REVISION(2, 2) void orientationChanged();
61
62protected:
63 void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) override;
64 void itemAdded(int index, QQuickItem *item) override;
65 void itemMoved(int index, QQuickItem *item) override;
66 void itemRemoved(int index, QQuickItem *item) override;
67
68#if QT_CONFIG(accessibility)
69 QAccessible::Role accessibleRole() const override;
70#endif
71
72private:
73 Q_DISABLE_COPY(QQuickSwipeView)
74 Q_DECLARE_PRIVATE(QQuickSwipeView)
75};
76
78
79class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickSwipeViewAttached : public QObject
80{
82 Q_PROPERTY(int index READ index NOTIFY indexChanged FINAL)
83 Q_PROPERTY(bool isCurrentItem READ isCurrentItem NOTIFY isCurrentItemChanged FINAL)
84 Q_PROPERTY(QQuickSwipeView *view READ view NOTIFY viewChanged FINAL)
85 // 2.1 (Qt 5.8)
86 Q_PROPERTY(bool isNextItem READ isNextItem NOTIFY isNextItemChanged FINAL REVISION(2, 1))
87 Q_PROPERTY(bool isPreviousItem READ isPreviousItem NOTIFY isPreviousItemChanged FINAL REVISION(2, 1))
88
89public:
90 explicit QQuickSwipeViewAttached(QObject *parent = nullptr);
91
92 int index() const;
93 bool isCurrentItem() const;
94 QQuickSwipeView *view() const;
95
96 // 2.1 (Qt 5.8)
97 bool isNextItem() const;
98 bool isPreviousItem() const;
99
104 // 2.1 (Qt 5.8)
105 /*Q_REVISION(2, 1)*/ void isNextItemChanged();
106 /*Q_REVISION(2, 1)*/ void isPreviousItemChanged();
107
108private:
109 Q_DISABLE_COPY(QQuickSwipeViewAttached)
110 Q_DECLARE_PRIVATE(QQuickSwipeViewAttached)
111};
112
114
116
117#endif // QQUICKSWIPEVIEW_P_H
\inmodule QtCore
Definition qobject.h:90
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:64
Enables the user to navigate pages by swiping sideways.
Q_REVISION(2, 1) void interactiveChanged()
\inmodule QtCore\reentrant
Definition qrect.h:483
Combined button and popup list for selecting options.
Orientation
Definition qnamespace.h:97
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char return DBusMessage return DBusMessage const char return DBusMessage dbus_bool_t return DBusMessage dbus_uint32_t return DBusMessage void
GLuint index
[2]
#define QML_DECLARE_TYPE(TYPE)
Definition qqml.h:19
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define QML_ATTACHED(ATTACHED_TYPE)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_REVISION(...)
#define Q_SIGNALS
QGraphicsItem * item
QQuickView * view
[0]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent