Perceptual Color
gradientslider.cpp
34GradientSlider::GradientSlider(const QSharedPointer<PerceptualColor::RgbColorSpace> &colorSpace, QWidget *parent)
48GradientSlider::GradientSlider(const QSharedPointer<PerceptualColor::RgbColorSpace> &colorSpace, Qt::Orientation orientation, QWidget *parent)
86void GradientSliderPrivate::initialize(const QSharedPointer<RgbColorSpace> &colorSpace, Qt::Orientation orientation)
113void GradientSlider::setFirstColorCieLchD50A(const PerceptualColor::GenericColor &newFirstColorCieLchD50A)
135void GradientSlider::setSecondColorCieLchD50A(const PerceptualColor::GenericColor &newSecondColorCieLchD50A)
152void GradientSlider::setColors(const PerceptualColor::GenericColor &newFirstColorCieLchD50A, const PerceptualColor::GenericColor &newSecondColorCieLchD50A)
422void GradientSliderPrivate::setOrientationWithoutSignalAndForceNewSizePolicy(Qt::Orientation newOrientation)
QColor handleColorFromBackgroundLightness(qreal lightness) const
An appropriate color for a handle, depending on the background lightness.
Definition abstractdiagram.cpp:244
int gradientMinimumLength() const
The minimum length of a color gradient.
Definition abstractdiagram.cpp:209
int handleOutlineThickness() const
The outline thickness of a handle.
Definition abstractdiagram.cpp:156
QColor focusIndicatorColor() const
The color for painting focus indicators.
Definition abstractdiagram.cpp:46
A slider who’s groove displays an LCH color gradient.
Definition gradientslider.h:101
void setFirstColorCieLchD50A(const PerceptualColor::GenericColor &newFirstColorCieLchD50A)
Setter for firstColorCieLchD50A property.
Definition gradientslider.cpp:113
virtual QSize minimumSizeHint() const override
Recommended minimum size for the widget.
Definition gradientslider.cpp:205
Q_INVOKABLE GradientSlider(const QSharedPointer< PerceptualColor::RgbColorSpace > &colorSpace, QWidget *parent=nullptr)
Constructs a vertical slider.
Definition gradientslider.cpp:34
virtual void mouseReleaseEvent(QMouseEvent *event) override
React on a mouse release event.
Definition gradientslider.cpp:296
void singleStepChanged(const qreal newSingleStep)
Signal for singleStep property.
virtual void mouseMoveEvent(QMouseEvent *event) override
React on a mouse move event.
Definition gradientslider.cpp:306
virtual QSize sizeHint() const override
Recommended size for the widget.
Definition gradientslider.cpp:185
virtual void keyPressEvent(QKeyEvent *event) override
React on key press events.
Definition gradientslider.cpp:354
void setSecondColorCieLchD50A(const PerceptualColor::GenericColor &newSecondColorCieLchD50A)
Setter for secondColorCieLchD50A property.
Definition gradientslider.cpp:135
void firstColorCieLchD50AChanged(const PerceptualColor::GenericColor &newFirstColorCieLchD50A)
Signal for firstColorCieLchD50A property.
virtual void wheelEvent(QWheelEvent *event) override
React on a mouse wheel event.
Definition gradientslider.cpp:316
void setSingleStep(const qreal newSingleStep)
Setter for singleStep property.
Definition gradientslider.cpp:229
void orientationChanged(const Qt::Orientation newOrientation)
Signal for orientation property.
virtual void resizeEvent(QResizeEvent *event) override
React on a resize event.
Definition gradientslider.cpp:164
PerceptualColor::GenericColor firstColorCieLchD50A
First color (the one corresponding to a low value)
Definition gradientslider.h:110
void valueChanged(const qreal newValue)
Signal for value property.
virtual void mousePressEvent(QMouseEvent *event) override
React on a mouse press event.
Definition gradientslider.cpp:286
void secondColorCieLchD50AChanged(const PerceptualColor::GenericColor &newSecondColorCieLchD50A)
Signal for secondColorCieLchD50A property.
void setPageStep(const qreal newPageStep)
Setter for pageStep property.
Definition gradientslider.cpp:250
void setColors(const PerceptualColor::GenericColor &newFirstColorCieLchD50A, const PerceptualColor::GenericColor &newSecondColorCieLchD50A)
Setter for both, firstColorCieLchD50A property and secondColorCieLchD50A property.
Definition gradientslider.cpp:152
void setOrientation(const Qt::Orientation newOrientation)
Setter for orientation property.
Definition gradientslider.cpp:444
PerceptualColor::GenericColor secondColorCieLchD50A
Second color (the one corresponding to a high value)
Definition gradientslider.h:153
void pageStepChanged(const qreal newPageStep)
Signal for pageStep property.
virtual void paintEvent(QPaintEvent *event) override
Paint the widget.
Definition gradientslider.cpp:525
Qt::KeyboardModifiers keyboardModifiers()
bool isNull() const const
Q_EMITQ_EMIT
qreal devicePixelRatioF() const const
Antialiasing
void drawImage(const QPoint &point, const QImage &image)
void drawLine(const QLine &line)
void setPen(Qt::PenStyle style)
void setRenderHint(RenderHint hint, bool on)
void setTransform(const QTransform &transform, bool combine)
void setColor(const QColor &color)
void setWidthF(qreal width)
qreal x() const const
qreal y() const const
int height() const const
void setHeight(int height)
void setWidth(int width)
int width() const const
Fixed
StrongFocus
Key_Up
ControlModifier
Orientation
virtual bool event(QEvent *event) override
bool hasFocus() const const
height
virtual void keyPressEvent(QKeyEvent *event)
layoutDirection
size
void update()
width
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.