a widget which display a color (sample)
More...
#include <jkqtecolorsampler.h>
a widget which display a color (sample)
Screenshots:
Basic usage is simple:
◆ SamplerMode
available modes for the slider
the appearance and the range of the slider depend on this
Enumerator |
---|
CircleSampler | color is shown as a filled circle
|
RectangleSampler | color is shown as a filled rectangle
|
◆ JKQTEColorSampler()
JKQTEColorSampler::JKQTEColorSampler |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ color()
QColor JKQTEColorSampler::color |
( |
| ) |
const |
sets the color to display
◆ minimumSizeHint()
virtual QSize JKQTEColorSampler::minimumSizeHint |
( |
| ) |
const |
|
overridevirtual |
◆ paintEvent()
virtual void JKQTEColorSampler::paintEvent |
( |
QPaintEvent * |
ev | ) |
|
|
overrideprotectedvirtual |
◆ samplerMode()
sets the display mode of the color sampler
◆ setColor
void JKQTEColorSampler::setColor |
( |
QColor |
col | ) |
|
|
slot |
sets the color to display
◆ setSamplerMode
void JKQTEColorSampler::setSamplerMode |
( |
SamplerMode |
m | ) |
|
|
slot |
sets the display mode of the color sampler
◆ sizeHint()
virtual QSize JKQTEColorSampler::sizeHint |
( |
| ) |
const |
|
overridevirtual |
◆ m_color
QColor JKQTEColorSampler::m_color |
|
protected |
◆ m_samplerMode
◆ color
QColor JKQTEColorSampler::color |
|
readwrite |
◆ samplerMode
The documentation for this class was generated from the following file: