An action containing a color widget, which can be embedded into a menu.
More...
#include <qgscolorwidgets.h>
|
void | colorChanged (const QColor &color) |
| Emitted when a color has been selected from the widget. More...
|
|
An action containing a color widget, which can be embedded into a menu.
- See also
- QgsColorWidget
- Since
- QGIS 2.14
Definition at line 213 of file qgscolorwidgets.h.
◆ QgsColorWidgetAction()
QgsColorWidgetAction::QgsColorWidgetAction |
( |
QgsColorWidget * |
colorWidget, |
|
|
QMenu * |
menu = nullptr , |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
◆ colorChanged
void QgsColorWidgetAction::colorChanged |
( |
const QColor & |
color | ) |
|
|
signal |
Emitted when a color has been selected from the widget.
- Parameters
-
◆ colorWidget()
Returns the color widget contained in the widget action.
Definition at line 230 of file qgscolorwidgets.h.
◆ dismissOnColorSelection()
bool QgsColorWidgetAction::dismissOnColorSelection |
( |
| ) |
const |
|
inline |
◆ setDismissOnColorSelection()
void QgsColorWidgetAction::setDismissOnColorSelection |
( |
bool |
dismiss | ) |
|
|
inline |
Sets whether the parent menu should be dismissed and closed when a color is selected from the action's color widget.
- Parameters
-
dismiss | set to true (default) to immediately close the menu when a color is selected from the widget. If set to false , the colorChanged signal will be emitted but the menu will stay open. |
- See also
- dismissOnColorSelection()
Definition at line 240 of file qgscolorwidgets.h.
The documentation for this class was generated from the following files: