A custom QGIS widget for selecting a color, including options for selecting colors via hue wheel, color swatches, and a color sampler.
More...
#include <qgscompoundcolorwidget.h>
A custom QGIS widget for selecting a color, including options for selecting colors via hue wheel, color swatches, and a color sampler.
- Since
- QGIS 2.16
Definition at line 34 of file qgscompoundcolorwidget.h.
◆ Layout
Widget layout.
Enumerator |
---|
LayoutDefault | Use the default (rectangular) layout.
|
LayoutVertical | Use a narrower, vertically stacked layout.
|
Definition at line 42 of file qgscompoundcolorwidget.h.
◆ QgsCompoundColorWidget()
QgsCompoundColorWidget::QgsCompoundColorWidget |
( |
QWidget * |
parent = nullptr , |
|
|
const QColor & |
color = QColor() , |
|
|
Layout |
layout = LayoutDefault |
|
) |
| |
◆ ~QgsCompoundColorWidget()
QgsCompoundColorWidget::~QgsCompoundColorWidget |
( |
| ) |
|
|
override |
◆ color()
QColor QgsCompoundColorWidget::color |
( |
| ) |
const |
◆ createNewUserPalette()
◆ currentColorChanged
void QgsCompoundColorWidget::currentColorChanged |
( |
const QColor & |
color | ) |
|
|
signal |
Emitted when the dialog's color changes.
- Parameters
-
◆ hideEvent()
void QgsCompoundColorWidget::hideEvent |
( |
QHideEvent * |
e | ) |
|
|
overrideprotected |
◆ importUserPaletteFromFile()
QgsUserColorScheme * QgsCompoundColorWidget::importUserPaletteFromFile |
( |
QWidget * |
parent | ) |
|
|
static |
◆ keyPressEvent()
void QgsCompoundColorWidget::keyPressEvent |
( |
QKeyEvent * |
e | ) |
|
|
overrideprotected |
◆ mouseMoveEvent()
void QgsCompoundColorWidget::mouseMoveEvent |
( |
QMouseEvent * |
e | ) |
|
|
overrideprotected |
◆ mousePressEvent()
void QgsCompoundColorWidget::mousePressEvent |
( |
QMouseEvent * |
e | ) |
|
|
overrideprotected |
◆ mouseReleaseEvent()
void QgsCompoundColorWidget::mouseReleaseEvent |
( |
QMouseEvent * |
e | ) |
|
|
overrideprotected |
◆ removeUserPalette()
bool QgsCompoundColorWidget::removeUserPalette |
( |
QgsUserColorScheme * |
scheme, |
|
|
QWidget * |
parent |
|
) |
| |
|
static |
◆ setAllowOpacity()
void QgsCompoundColorWidget::setAllowOpacity |
( |
bool |
allowOpacity | ) |
|
Sets whether opacity modification (transparency) is permitted for the color dialog.
Defaults to true
.
- Parameters
-
allowOpacity | set to false to disable opacity modification |
- Since
- QGIS 3.0
Definition at line 307 of file qgscompoundcolorwidget.cpp.
◆ setColor
void QgsCompoundColorWidget::setColor |
( |
const QColor & |
color | ) |
|
|
slot |
◆ setDiscarded()
void QgsCompoundColorWidget::setDiscarded |
( |
bool |
discarded | ) |
|
|
inline |
Sets whether the widget's color has been "discarded" and the selected color should not be stored in the recent color list.
- Parameters
-
discarded | set to true to avoid adding color to recent color list on widget destruction. |
- Since
- QGIS 3.0
Definition at line 78 of file qgscompoundcolorwidget.h.
◆ setPreviousColor
void QgsCompoundColorWidget::setPreviousColor |
( |
const QColor & |
color | ) |
|
|
slot |
The documentation for this class was generated from the following files: