Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquickselectionrectangle_p_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 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 QQUICKSELECTIONRECTANGLE_P_P_H
5#define QQUICKSELECTIONRECTANGLE_P_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
19
20#include <QtCore/qpointer.h>
21#include <QtCore/qtimer.h>
22
23#include <QtQuick/private/qquickselectable_p.h>
24#include <QtQuick/private/qquicktaphandler_p.h>
25#include <QtQuick/private/qquickdraghandler_p.h>
26
27#include <QtQuickTemplates2/private/qquickcontrol_p_p.h>
28
30
32{
33public:
34 Q_DECLARE_PUBLIC(QQuickSelectionRectangle)
35
37
38 void updateDraggingState(bool isDragging);
39 void updateActiveState(bool isActive);
40 void updateHandles();
42 void connectToTarget();
43 void scrollTowardsPos(const QPointF &pos);
45
47
49
50public:
52
58
60
63
67
70
71 bool m_enabled = true;
72 bool m_active = false;
73 bool m_dragging = false;
74};
75
77
78#endif // QQUICKSELECTIONRECTANGLE_P_P_H
bool isActive
\inmodule QtCore
Definition qobject.h:90
\inmodule QtCore\reentrant
Definition qpoint.h:214
\inmodule QtCore
Definition qpointer.h:18
The QQmlComponent class encapsulates a QML component definition.
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:64
QQuickSelectionRectanglePrivate()
Used to select table cells inside a TableView.
QQuickSelectionRectangle::SelectionMode m_selectionMode
QQuickItem * createHandle(QQmlComponent *delegate, Qt::Corner corner)
QScopedPointer< QQuickItem > m_topLeftHandle
QScopedPointer< QQuickItem > m_bottomRightHandle
QQuickItem * handleUnderPos(const QPointF &pos)
QQuickSelectionRectangleAttached * getAttachedObject(const QObject *object) const
QQuickSelectionRectangle::SelectionMode m_effectiveSelectionMode
\inmodule QtCore
\inmodule QtCore
Definition qsize.h:207
\inmodule QtCore
Definition qtimer.h:20
Combined button and popup list for selecting options.