Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
4#ifndef QQUICKABSTRACTCOLORPICKER_P_P_H
5#define QQUICKABSTRACTCOLORPICKER_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
18#include <QtQuickTemplates2/private/qquickcontrol_p_p.h>
19#include <QtQuickTemplates2/private/qquickdeferredexecute_p_p.h>
20
23
25
27{
28 Q_DECLARE_PUBLIC(QQuickAbstractColorPicker);
29
30public:
32
34 {
35 return colorPicker->d_func();
36 }
37
38 bool handlePress(const QPointF &point, ulong timestamp) override;
39 bool handleMove(const QPointF &point, ulong timestamp) override;
40 bool handleRelease(const QPointF &point, ulong timestamp) override;
41 void handleUngrab() override;
42
43 void cancelHandle();
44 void executeHandle(bool complete = false);
45
48
51 QQuickDeferredPointer<QQuickItem> m_handle;
52 bool m_pressed = false;
53
54protected:
55 bool m_hsl = false; // Use hsv by default.
56};
57
59
60#endif // QQUICKABSTRACTCOLORPICKER_P_P_H
\inmodule QtCore\reentrant
Definition qpoint.h:217
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
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
Combined button and popup list for selecting options.
unsigned long ulong
Definition qtypes.h:35
QGraphicsItem * item