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