Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
24
26
28{
29 Q_DECLARE_PUBLIC(QQuickAbstractColorPicker);
30
31public:
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;
43
44 void cancelHandle();
45 void executeHandle(bool complete = false);
46
47 void itemImplicitWidthChanged(QQuickItem *item) override;
48 void itemImplicitHeightChanged(QQuickItem *item) override;
49
53 bool m_pressed = false;
54
55protected:
56 bool m_hsl = false; // Use hsv by default.
57};
58
59QT_END_NAMESPACE
60
61#endif // QQUICKABSTRACTCOLORPICKER_P_P_H
bool handleRelease(const QPointF &point, ulong timestamp) override
void itemImplicitHeightChanged(QQuickItem *item) override
QQuickDeferredPointer< QQuickItem > m_handle
void itemImplicitWidthChanged(QQuickItem *item) override
bool handlePress(const QPointF &point, ulong timestamp) override
static QQuickAbstractColorPickerPrivate * get(QQuickAbstractColorPicker *colorPicker)
bool handleMove(const QPointF &point, ulong timestamp) override