34 Q_PROPERTY(SelectionMode selectionMode READ selectionMode WRITE setSelectionMode NOTIFY selectionModeChanged FINAL)
35 Q_PROPERTY(QQuickItem *target READ target WRITE setTarget NOTIFY targetChanged FINAL)
36 Q_PROPERTY(QQmlComponent *topLeftHandle READ topLeftHandle WRITE setTopLeftHandle NOTIFY topLeftHandleChanged FINAL)
37 Q_PROPERTY(QQmlComponent *bottomRightHandle READ bottomRightHandle WRITE setBottomRightHandle NOTIFY bottomRightHandleChanged FINAL)
38 Q_PROPERTY(
bool active READ active NOTIFY activeChanged FINAL)
39 Q_PROPERTY(
bool dragging READ dragging NOTIFY draggingChanged FINAL)
41 QML_NAMED_ELEMENT(SelectionRectangle)
42 QML_ATTACHED(QQuickSelectionRectangleAttached)
43 QML_ADDED_IN_VERSION(6, 2)
53 explicit QQuickSelectionRectangle(QQuickItem *parent =
nullptr);
55 QQuickItem *target()
const;
56 void setTarget(QQuickItem *target);
61 SelectionMode selectionMode()
const;
62 void setSelectionMode(SelectionMode selectionMode);
64 QQmlComponent *topLeftHandle()
const;
65 void setTopLeftHandle(QQmlComponent *topLeftHandle);
66 QQmlComponent *bottomRightHandle()
const;
67 void setBottomRightHandle(QQmlComponent *bottomRightHandle);
69 static QQuickSelectionRectangleAttached *qmlAttachedProperties(QObject *obj);
74 void draggingChanged();
75 void topLeftHandleChanged();
76 void bottomRightHandleChanged();
77 void selectionModeChanged();
80 Q_DISABLE_COPY(QQuickSelectionRectangle)
81 Q_DECLARE_PRIVATE(QQuickSelectionRectangle)
87 Q_PROPERTY(QQuickSelectionRectangle *control READ control NOTIFY controlChanged FINAL)
88 Q_PROPERTY(
bool dragging READ dragging NOTIFY draggingChanged FINAL)
91 QQuickSelectionRectangleAttached(QObject *parent);
93 QQuickSelectionRectangle *control()
const;
94 void setControl(QQuickSelectionRectangle *control);
96 bool dragging()
const;
97 void setDragging(
bool dragging);
100 void controlChanged();
101 void draggingChanged();
104 QPointer<QQuickSelectionRectangle> m_control;
105 bool m_dragging =
false;
107 friend class QQuickSelectionRectanglePrivate;