Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QQUICKSELECTIONRECTANGLE_P_P_H
6
#
define
QQUICKSELECTIONRECTANGLE_P_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
"qquickselectionrectangle_p.h"
20
21
#
include
<
QtCore
/
qpointer
.
h
>
22
#
include
<
QtCore
/
qtimer
.
h
>
23
24
#
include
<
QtQuick
/
private
/
qquickselectable_p
.
h
>
25
#
include
<
QtQuick
/
private
/
qquicktaphandler_p
.
h
>
26
#
include
<
QtQuick
/
private
/
qquickdraghandler_p
.
h
>
27
28
#
include
<
QtQuickTemplates2
/
private
/
qquickcontrol_p_p
.
h
>
29
30
QT_BEGIN_NAMESPACE
31
32
class
QQuickSelectionRectanglePrivate
:
public
QQuickControlPrivate
33
{
34
public
:
35
Q_DECLARE_PUBLIC(QQuickSelectionRectangle)
36
37
QQuickSelectionRectanglePrivate
();
38
39
void
updateDraggingState
(
bool
isDragging);
40
void
updateActiveState
(
bool
isActive);
41
void
updateHandles
();
42
void
updateSelectionMode
();
43
void
connectToTarget
();
44
void
scrollTowardsPos
(
const
QPointF &pos);
45
QQuickItem
*
handleUnderPos
(
const
QPointF &pos);
46
47
QQuickItem
*
createHandle
(QQmlComponent *delegate, Qt::Corner corner);
48
49
QQuickSelectionRectangleAttached *
getAttachedObject
(
const
QObject *object)
const
;
50
51
public
:
52
QPointer
<
QQuickItem
>
m_target
;
53
54
QQmlComponent *
m_topLeftHandleDelegate
=
nullptr
;
55
QQmlComponent *
m_bottomRightHandleDelegate
=
nullptr
;
56
QScopedPointer
<
QQuickItem
>
m_topLeftHandle
;
57
QScopedPointer
<
QQuickItem
>
m_bottomRightHandle
;
58
QPointer
<
QQuickItem
>
m_draggedHandle
;
59
60
QQuickSelectable *
m_selectable
=
nullptr
;
61
62
QQuickTapHandler
*
m_tapHandler
=
nullptr
;
63
QQuickDragHandler
*
m_dragHandler
=
nullptr
;
64
65
QTimer
m_scrollTimer
;
66
QPointF
m_scrollToPoint
;
67
QSizeF
m_scrollSpeed
=
QSizeF
(1, 1);
68
69
QQuickSelectionRectangle
::
SelectionMode
m_selectionMode
=
QQuickSelectionRectangle
::
Auto
;
70
QQuickSelectionRectangle
::
SelectionMode
m_effectiveSelectionMode
=
QQuickSelectionRectangle
::
Drag
;
71
72
bool
m_enabled
=
true
;
73
bool
m_active
=
false
;
74
bool
m_dragging
=
false
;
75
};
76
77
QT_END_NAMESPACE
78
79
#
endif
// QQUICKSELECTIONRECTANGLE_P_P_H
QQuickSelectionRectangleAttached
Definition
qquickselectionrectangle_p.h:85
QQuickSelectionRectanglePrivate
Definition
qquickselectionrectangle_p_p.h:33
QQuickSelectionRectanglePrivate::m_scrollTimer
QTimer m_scrollTimer
Definition
qquickselectionrectangle_p_p.h:65
QQuickSelectionRectanglePrivate::m_selectable
QQuickSelectable * m_selectable
Definition
qquickselectionrectangle_p_p.h:60
QQuickSelectionRectanglePrivate::m_topLeftHandleDelegate
QQmlComponent * m_topLeftHandleDelegate
Definition
qquickselectionrectangle_p_p.h:54
QQuickSelectionRectanglePrivate::updateActiveState
void updateActiveState(bool isActive)
Definition
qquickselectionrectangle.cpp:394
QQuickSelectionRectanglePrivate::m_active
bool m_active
Definition
qquickselectionrectangle_p_p.h:73
QQuickSelectionRectanglePrivate::m_tapHandler
QQuickTapHandler * m_tapHandler
Definition
qquickselectionrectangle_p_p.h:62
QQuickSelectionRectanglePrivate::updateHandles
void updateHandles()
Definition
qquickselectionrectangle.cpp:496
QQuickSelectionRectanglePrivate::m_dragHandler
QQuickDragHandler * m_dragHandler
Definition
qquickselectionrectangle_p_p.h:63
QQuickSelectionRectanglePrivate::updateSelectionMode
void updateSelectionMode()
Definition
qquickselectionrectangle.cpp:545
QQuickSelectionRectanglePrivate::m_draggedHandle
QPointer< QQuickItem > m_draggedHandle
Definition
qquickselectionrectangle_p_p.h:58
QQuickSelectionRectanglePrivate::createHandle
QQuickItem * createHandle(QQmlComponent *delegate, Qt::Corner corner)
Definition
qquickselectionrectangle.cpp:413
QQuickSelectionRectanglePrivate::updateDraggingState
void updateDraggingState(bool isDragging)
Definition
qquickselectionrectangle.cpp:383
QQuickSelectionRectanglePrivate::m_target
QPointer< QQuickItem > m_target
Definition
qquickselectionrectangle_p_p.h:52
QQuickSelectionRectanglePrivate::m_topLeftHandle
QScopedPointer< QQuickItem > m_topLeftHandle
Definition
qquickselectionrectangle_p_p.h:56
QQuickSelectionRectanglePrivate::m_bottomRightHandleDelegate
QQmlComponent * m_bottomRightHandleDelegate
Definition
qquickselectionrectangle_p_p.h:55
QQuickSelectionRectanglePrivate::m_bottomRightHandle
QScopedPointer< QQuickItem > m_bottomRightHandle
Definition
qquickselectionrectangle_p_p.h:57
QQuickSelectionRectanglePrivate::m_dragging
bool m_dragging
Definition
qquickselectionrectangle_p_p.h:74
QQuickSelectionRectanglePrivate::m_enabled
bool m_enabled
Definition
qquickselectionrectangle_p_p.h:72
QQuickSelectionRectanglePrivate::m_scrollToPoint
QPointF m_scrollToPoint
Definition
qquickselectionrectangle_p_p.h:66
QQuickSelectionRectanglePrivate::handleUnderPos
QQuickItem * handleUnderPos(const QPointF &pos)
Definition
qquickselectionrectangle.cpp:365
QQuickSelectionRectanglePrivate::scrollTowardsPos
void scrollTowardsPos(const QPointF &pos)
Definition
qquickselectionrectangle.cpp:354
QQuickSelectionRectanglePrivate::getAttachedObject
QQuickSelectionRectangleAttached * getAttachedObject(const QObject *object) const
Definition
qquickselectionrectangle.cpp:589
QQuickSelectionRectanglePrivate::m_scrollSpeed
QSizeF m_scrollSpeed
Definition
qquickselectionrectangle_p_p.h:67
QQuickSelectionRectanglePrivate::connectToTarget
void connectToTarget()
Definition
qquickselectionrectangle.cpp:517
QQuickSelectionRectangle
Definition
qquickselectionrectangle_p.h:32
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtdeclarative
src
quicktemplates
qquickselectionrectangle_p_p.h
Generated on
for Qt by
1.18.0