Public Member Functions | |
QSizeF | actualColorSize () |
Actual size of a color square. | |
QSizeF | actualColorSize (const QSize &rowcols) |
Actual size of a color square. | |
void | clearDrop () |
Clears drop properties. | |
void | dropEvent (QDropEvent *event) |
Sets the drop properties. | |
QRectF | indexRect (int index, const QSize &rowcols, const QSizeF &color_size) |
Rectangle corresponding to the color at the given index. | |
QRectF | indexRect (int index) |
Rectangle corresponding to the color at the given index. | |
Private (Swatch *owner) | |
QSize | rowcols () |
Number of rows/columns in the palette. | |
Public Attributes | |
QPen | border |
QSize | color_size |
Preferred size for the color squares. | |
int | drag_index |
Index used by drags. | |
QPoint | drag_pos |
Point used to keep track of dragging. | |
QColor | drop_color |
Dropped color. | |
int | drop_index |
Index for a requested drop. | |
bool | drop_overwrite |
Whether the drop will overwrite an existing color. | |
int | forced_columns |
int | forced_rows |
Swatch * | owner |
ColorPalette | palette |
Palette with colors and related metadata. | |
bool | readonly |
Whether the palette can be modified via user interaction. | |
int | selected |
Current selection index (-1 for no selection) | |
ColorSizePolicy | size_policy |
Definition at line 38 of file swatch.cpp.
color_widgets::Swatch::Private::Private | ( | Swatch * | owner | ) | [inline] |
Definition at line 58 of file swatch.cpp.
QSizeF color_widgets::Swatch::Private::actualColorSize | ( | ) | [inline] |
Actual size of a color square.
Definition at line 162 of file swatch.cpp.
QSizeF color_widgets::Swatch::Private::actualColorSize | ( | const QSize & | rowcols | ) | [inline] |
Actual size of a color square.
Definition at line 174 of file swatch.cpp.
void color_widgets::Swatch::Private::clearDrop | ( | ) | [inline] |
Clears drop properties.
Definition at line 150 of file swatch.cpp.
void color_widgets::Swatch::Private::dropEvent | ( | QDropEvent * | event | ) | [inline] |
Sets the drop properties.
Definition at line 99 of file swatch.cpp.
QRectF color_widgets::Swatch::Private::indexRect | ( | int | index, |
const QSize & | rowcols, | ||
const QSizeF & | color_size | ||
) | [inline] |
Rectangle corresponding to the color at the given index.
Definition at line 186 of file swatch.cpp.
QRectF color_widgets::Swatch::Private::indexRect | ( | int | index | ) | [inline] |
Rectangle corresponding to the color at the given index.
Definition at line 201 of file swatch.cpp.
QSize color_widgets::Swatch::Private::rowcols | ( | ) | [inline] |
Number of rows/columns in the palette.
Definition at line 75 of file swatch.cpp.
Definition at line 45 of file swatch.cpp.
Preferred size for the color squares.
Definition at line 43 of file swatch.cpp.
Index used by drags.
Definition at line 51 of file swatch.cpp.
Point used to keep track of dragging.
Definition at line 50 of file swatch.cpp.
Dropped color.
Definition at line 53 of file swatch.cpp.
Index for a requested drop.
Definition at line 52 of file swatch.cpp.
Whether the drop will overwrite an existing color.
Definition at line 54 of file swatch.cpp.
Definition at line 47 of file swatch.cpp.
Definition at line 46 of file swatch.cpp.
Definition at line 56 of file swatch.cpp.
Palette with colors and related metadata.
Definition at line 41 of file swatch.cpp.
Whether the palette can be modified via user interaction.
Definition at line 48 of file swatch.cpp.
Current selection index (-1 for no selection)
Definition at line 42 of file swatch.cpp.
Definition at line 44 of file swatch.cpp.