#include <qgscolorswatchgrid.h>
Public Slots |
void | refreshColors () |
| Reload colors from scheme and redraws the widget.
|
Signals |
void | colorChanged (const QColor color) |
| Emitted when a color has been selected from the widget.
|
Constructor & Destructor Documentation
QgsColorSwatchGridAction::QgsColorSwatchGridAction |
( |
QgsColorScheme * |
scheme, |
|
|
QMenu * |
menu = 0 , |
|
|
QString |
context = QString() , |
|
|
QWidget * |
parent = 0 |
|
) |
| |
Construct a new color swatch grid action.
- Parameters
-
scheme | QgsColorScheme for colors to show in grid |
menu | parent menu |
context | context string provided to color scheme |
parent | parent widget |
QgsColorSwatchGridAction::~QgsColorSwatchGridAction |
( |
| ) |
|
|
virtual |
Member Function Documentation
QColor QgsColorSwatchGridAction::baseColor |
( |
| ) |
const |
Get the base color for the color grid.
- Returns
- base color which is passed to scheme for color generation
- See Also
- setBaseColor
void QgsColorSwatchGridAction::colorChanged |
( |
const QColor |
color | ) |
|
|
signal |
Emitted when a color has been selected from the widget.
- Parameters
-
QString QgsColorSwatchGridAction::context |
( |
| ) |
const |
Get the current context for the color grid.
- Returns
- context string which is passed to scheme for color generation
- See Also
- setContext
void QgsColorSwatchGridAction::refreshColors |
( |
| ) |
|
|
slot |
Reload colors from scheme and redraws the widget.
void QgsColorSwatchGridAction::setBaseColor |
( |
const QColor |
baseColor | ) |
|
Sets the base color for the color grid.
- Parameters
-
baseColor | base color to pass to scheme for color generation |
- See Also
- baseColor
void QgsColorSwatchGridAction::setContext |
( |
const QString |
context | ) |
|
Sets the current context for the color grid.
- Parameters
-
context | string which is passed to scheme for color generation |
- See Also
- context
The documentation for this class was generated from the following files: