Perceptual Color
colordialog.h
320 Q_PROPERTY(QColor currentColor READ currentColor WRITE setCurrentColor NOTIFY currentColorChanged)
352 Q_PROPERTY(DialogLayoutDimensions layoutDimensions READ layoutDimensions WRITE setLayoutDimensions NOTIFY layoutDimensionsChanged)
363 * | DontUseNativeDialog | true | Use Qt’s standard color dialog instead of the operating system native color dialog.
431 Q_INVOKABLE explicit ColorDialog(const QSharedPointer<PerceptualColor::RgbColorSpace> &colorSpace, QWidget *parent = nullptr);
432 Q_INVOKABLE explicit ColorDialog(const QSharedPointer<PerceptualColor::RgbColorSpace> &colorSpace, const QColor &initial, QWidget *parent = nullptr);
438 getColor(const QColor &initial = Qt::white, QWidget *parent = nullptr, const QString &title = QString(), ColorDialogOptions options = ColorDialogOptions());
439 [[nodiscard]] static QColor getColor(const QSharedPointer<PerceptualColor::RgbColorSpace> &colorSpace,
455 [[nodiscard]] Q_INVOKABLE bool testOption(PerceptualColor::ColorDialog::ColorDialogOption option) const;
459 void setLayoutDimensions(const PerceptualColor::ColorDialog::DialogLayoutDimensions newLayoutDimensions);
460 Q_INVOKABLE void setOption(PerceptualColor::ColorDialog::ColorDialogOption option, bool on = true);
476 void layoutDimensionsChanged(const PerceptualColor::ColorDialog::DialogLayoutDimensions newLayoutDimensions);
void colorSelected(const QColor &color)
This signal is emitted just after the user has clicked OK to select a color to use.
virtual void showEvent(QShowEvent *event) override
Handle show events.
Definition colordialog.cpp:2574
ColorDialogOptions options
Various options that affect the look and feel of the dialog.
Definition colordialog.h:386
void setCurrentColor(const QColor &color)
Setter for currentColor property.
Definition colordialog.cpp:1417
virtual void done(int result) override
Various updates when closing the dialog.
Definition colordialog.cpp:2371
void optionsChanged(const PerceptualColor::ColorDialog::ColorDialogOptions newOptions)
Notify signal for property KConfig Entry Options.
void setOptions(PerceptualColor::ColorDialog::ColorDialogOptions newOptions)
Setter for KConfig Entry Options.
Definition colordialog.cpp:2229
void setLayoutDimensions(const PerceptualColor::ColorDialog::DialogLayoutDimensions newLayoutDimensions)
Setter for property layoutDimensions.
Definition colordialog.cpp:2417
@ ScreenSizeDependent
Decide automatically between collapsed and expanded layout: collapsed is used on small screens,...
Definition colordialog.h:416
virtual void changeEvent(QEvent *event) override
Handle state changes.
Definition colordialog.cpp:2522
void layoutDimensionsChanged(const PerceptualColor::ColorDialog::DialogLayoutDimensions newLayoutDimensions)
Notify signal for property layoutDimensions.
QColorDialog::ColorDialogOption ColorDialogOption
Local alias for QColorDialog::ColorDialogOption.
Definition colordialog.h:396
QColorDialog::ColorDialogOptions ColorDialogOptions
Local alias for QColorDialog::ColorDialogOptions.
Definition colordialog.h:404
void currentColorChanged(const QColor &color)
Notify signal for property currentColor.
Q_INVOKABLE QColor getColor(QString name)
This file provides support for C++ symbol import and export.
#define PERCEPTUALCOLOR_IMPORTEXPORT
A macro that either exports dynamic library symbols or imports dynamic library symbols or does nothin...
Definition importexport.h:154
QDialog(QWidget *parent, Qt::WindowFlags f)
int result() const const
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
virtual bool event(QEvent *event) override
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:46:43 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:46:43 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.