Perceptual Color
4#ifndef SCREENCOLORPICKER
5#define SCREENCOLORPICKER
15#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
16#include <qcontainerfwd.h>
17#include <qtmetamacros.h>
20#include <qobjectdefs.h>
42class ScreenColorPicker :
public QWidget
48 virtual ~ScreenColorPicker()
override;
49 [[nodiscard]]
bool isAvailable();
52 void startPicking(quint8 previousColorRed, quint8 previousColorGreen, quint8 previousColorBlue);
79 void newColor(
double red,
double green,
double blue);
83 friend class TestScreenColorPicker;
85 void pickWithPortal();
86 [[nodiscard]]
static bool hasPortalSupport();
87 void initializeQColorDialogSupport();
88 [[nodiscard]]
static bool queryPortalSupport();
89 [[nodiscard]]
static QString translateViaQColorDialog(
const char *sourceText);
110 static inline std::optional<bool> m_hasQColorDialogSupport = std::nullopt;
122 void getPortalResponse(uint exitCode,
const QVariantMap &responseArguments);
The namespace of this library.
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:20:36 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.