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
qquickabstractcolorpicker_p_p.h
Go to the documentation of this file.
1
// Copyright (C) 2022 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
QQUICKABSTRACTCOLORPICKER_P_P_H
6
#
define
QQUICKABSTRACTCOLORPICKER_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
<
QtQuickTemplates2
/
private
/
qquickcontrol_p_p
.
h
>
20
#
include
<
QtQuickTemplates2
/
private
/
qquickdeferredexecute_p_p
.
h
>
21
22
#
include
"qquickabstractcolorpicker_p.h"
23
#
include
"qquickcolordialogutils_p.h"
24
25
QT_BEGIN_NAMESPACE
26
27
class
QQuickAbstractColorPickerPrivate
:
public
QQuickControlPrivate
28
{
29
Q_DECLARE_PUBLIC(QQuickAbstractColorPicker);
30
31
public
:
32
explicit
QQuickAbstractColorPickerPrivate
();
33
34
static
QQuickAbstractColorPickerPrivate
*
get
(QQuickAbstractColorPicker *colorPicker)
35
{
36
return
colorPicker->d_func();
37
}
38
39
bool
handlePress
(
const
QPointF &point, ulong timestamp)
override
;
40
bool
handleMove
(
const
QPointF &point, ulong timestamp)
override
;
41
bool
handleRelease
(
const
QPointF &point, ulong timestamp)
override
;
42
void
handleUngrab
()
override
;
43
44
void
cancelHandle
();
45
void
executeHandle
(
bool
complete =
false
);
46
47
void
itemImplicitWidthChanged
(QQuickItem *item)
override
;
48
void
itemImplicitHeightChanged
(QQuickItem *item)
override
;
49
50
HSVA
m_hsva
;
51
QPointF
m_pressPoint
;
52
QQuickDeferredPointer
<
QQuickItem
>
m_handle
;
53
bool
m_pressed
=
false
;
54
55
protected
:
56
bool
m_hsl
=
false
;
// Use hsv by default.
57
};
58
59
QT_END_NAMESPACE
60
61
#
endif
// QQUICKABSTRACTCOLORPICKER_P_P_H
QQuickAbstractColorPickerPrivate
Definition
qquickabstractcolorpicker_p_p.h:28
QQuickAbstractColorPickerPrivate::handleUngrab
void handleUngrab() override
Definition
qquickabstractcolorpicker.cpp:48
QQuickAbstractColorPickerPrivate::m_hsva
HSVA m_hsva
Definition
qquickabstractcolorpicker_p_p.h:50
QQuickAbstractColorPickerPrivate::handleRelease
bool handleRelease(const QPointF &point, ulong timestamp) override
Definition
qquickabstractcolorpicker.cpp:36
QQuickAbstractColorPickerPrivate::cancelHandle
void cancelHandle()
Definition
qquickabstractcolorpicker.cpp:56
QQuickAbstractColorPickerPrivate::itemImplicitHeightChanged
void itemImplicitHeightChanged(QQuickItem *item) override
Definition
qquickabstractcolorpicker.cpp:82
QQuickAbstractColorPickerPrivate::m_hsl
bool m_hsl
Definition
qquickabstractcolorpicker_p_p.h:56
QQuickAbstractColorPickerPrivate::m_pressed
bool m_pressed
Definition
qquickabstractcolorpicker_p_p.h:53
QQuickAbstractColorPickerPrivate::m_handle
QQuickDeferredPointer< QQuickItem > m_handle
Definition
qquickabstractcolorpicker_p_p.h:52
QQuickAbstractColorPickerPrivate::itemImplicitWidthChanged
void itemImplicitWidthChanged(QQuickItem *item) override
Definition
qquickabstractcolorpicker.cpp:74
QQuickAbstractColorPickerPrivate::handlePress
bool handlePress(const QPointF &point, ulong timestamp) override
Definition
qquickabstractcolorpicker.cpp:17
QQuickAbstractColorPickerPrivate::m_pressPoint
QPointF m_pressPoint
Definition
qquickabstractcolorpicker_p_p.h:51
QQuickAbstractColorPickerPrivate::get
static QQuickAbstractColorPickerPrivate * get(QQuickAbstractColorPicker *colorPicker)
Definition
qquickabstractcolorpicker_p_p.h:34
QQuickAbstractColorPickerPrivate::handleMove
bool handleMove(const QPointF &point, ulong timestamp) override
Definition
qquickabstractcolorpicker.cpp:27
QQuickAbstractColorPickerPrivate::executeHandle
void executeHandle(bool complete=false)
Definition
qquickabstractcolorpicker.cpp:62
QQuickAbstractColorPickerPrivate::QQuickAbstractColorPickerPrivate
QQuickAbstractColorPickerPrivate()
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
HSVA
Definition
qquickcolordialogutils_p.h:29
qtdeclarative
src
quickdialogs
quickdialogsquickimpl
qquickabstractcolorpicker_p_p.h
Generated on
for Qt by
1.18.0