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>
35class ScreenColorPicker :
public QWidget
41 virtual ~ScreenColorPicker()
override;
42 [[nodiscard]]
bool isAvailable();
45 void startPicking(quint8 previousColorRed, quint8 previousColorGreen, quint8 previousColorBlue);
75 void newColor(
double red,
double green,
double blue,
bool isSRgbGuaranteed);
79 friend class TestScreenColorPicker;
81 void pickWithPortal();
82 [[nodiscard]]
static bool hasPortalSupport();
83 void initializeQColorDialogSupport();
84 [[nodiscard]]
static bool queryPortalSupport();
85 [[nodiscard]]
static QString translateViaQColorDialog(
const char *sourceText);
106 static inline std::optional<bool> m_hasQColorDialogSupport = std::nullopt;
118 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 Mon Nov 18 2024 12:18:38 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.