#include <color_preview.hpp>
Simple widget that shows a preview of a color
Definition at line 33 of file color_preview.hpp.
Enumerator |
---|
NoAlpha |
Show current color with no transparency.
|
AllAlpha |
show current color with transparency
|
SplitAlpha |
Show both solid and transparent side by side.
|
SplitColor |
Show current and comparison colors side by side.
|
Definition at line 42 of file color_preview.hpp.
color_widgets::ColorPreview::ColorPreview |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
color_widgets::ColorPreview::~ColorPreview |
( |
| ) |
|
QBrush color_widgets::ColorPreview::background |
( |
| ) |
const |
Get the background visible under transparent colors.
void color_widgets::ColorPreview::clicked |
( |
| ) |
|
|
signal |
Emitted when the user clicks on the widget.
QColor color_widgets::ColorPreview::color |
( |
| ) |
const |
void color_widgets::ColorPreview::colorChanged |
( |
QColor |
| ) |
|
|
signal |
QColor color_widgets::ColorPreview::comparisonColor |
( |
| ) |
const |
Get the comparison color.
void color_widgets::ColorPreview::mouseMoveEvent |
( |
QMouseEvent * |
ev | ) |
|
|
protected |
void color_widgets::ColorPreview::mouseReleaseEvent |
( |
QMouseEvent * |
ev | ) |
|
|
protected |
void color_widgets::ColorPreview::paint |
( |
QPainter & |
painter, |
|
|
QRect |
rect |
|
) |
| const |
void color_widgets::ColorPreview::paintEvent |
( |
QPaintEvent * |
| ) |
|
|
protected |
void color_widgets::ColorPreview::resizeEvent |
( |
QResizeEvent * |
| ) |
|
|
protected |
void color_widgets::ColorPreview::setBackground |
( |
const QBrush & |
bk | ) |
|
Change the background visible under transparent colors.
Definition at line 56 of file color_preview.cpp.
void color_widgets::ColorPreview::setColor |
( |
const QColor & |
c | ) |
|
|
slot |
void color_widgets::ColorPreview::setComparisonColor |
( |
const QColor & |
c | ) |
|
|
slot |
void color_widgets::ColorPreview::setDisplayMode |
( |
DisplayMode |
dm | ) |
|
QSize color_widgets::ColorPreview::sizeHint |
( |
| ) |
const |
Private* const color_widgets::ColorPreview::p |
|
private |
QBrush color_widgets::ColorPreview::background |
|
readwrite |
QColor color_widgets::ColorPreview::color |
|
readwrite |
QColor color_widgets::ColorPreview::comparisonColor |
|
readwrite |
The documentation for this class was generated from the following files: