An interactive editor for previewing a gradient color ramp and modifying the position of color stops along the gradient.
More...
#include <qgsgradientstopeditor.h>
An interactive editor for previewing a gradient color ramp and modifying the position of color stops along the gradient.
- Since
- QGIS 2.16
Definition at line 33 of file qgsgradientstopeditor.h.
◆ QgsGradientStopEditor()
QgsGradientStopEditor::QgsGradientStopEditor |
( |
QWidget * |
parent = nullptr , |
|
|
QgsGradientColorRamp * |
ramp = nullptr |
|
) |
| |
◆ changed
void QgsGradientStopEditor::changed |
( |
| ) |
|
|
signal |
Emitted when the gradient ramp is changed by a user.
◆ deleteSelectedStop
void QgsGradientStopEditor::deleteSelectedStop |
( |
| ) |
|
|
slot |
Deletes the current selected stop.
This slot has no effect if either the first or last stop is selected, as they cannot be deleted.
Definition at line 267 of file qgsgradientstopeditor.cpp.
◆ dragEnterEvent()
void QgsGradientStopEditor::dragEnterEvent |
( |
QDragEnterEvent * |
e | ) |
|
|
overrideprotected |
◆ dropEvent()
void QgsGradientStopEditor::dropEvent |
( |
QDropEvent * |
e | ) |
|
|
overrideprotected |
◆ gradientRamp()
◆ keyPressEvent()
void QgsGradientStopEditor::keyPressEvent |
( |
QKeyEvent * |
event | ) |
|
|
overrideprotected |
◆ mouseDoubleClickEvent()
void QgsGradientStopEditor::mouseDoubleClickEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
◆ mouseMoveEvent()
void QgsGradientStopEditor::mouseMoveEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
◆ mousePressEvent()
void QgsGradientStopEditor::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
◆ paintEvent()
void QgsGradientStopEditor::paintEvent |
( |
QPaintEvent * |
event | ) |
|
|
override |
◆ selectedStop()
◆ selectedStopChanged
void QgsGradientStopEditor::selectedStopChanged |
( |
const QgsGradientStop & |
stop | ) |
|
|
signal |
Emitted when the current selected stop changes.
- Parameters
-
stop | details about newly selected stop |
◆ selectStop()
void QgsGradientStopEditor::selectStop |
( |
int |
index | ) |
|
◆ setColor1
void QgsGradientStopEditor::setColor1 |
( |
const QColor & |
color | ) |
|
|
slot |
◆ setColor2
void QgsGradientStopEditor::setColor2 |
( |
const QColor & |
color | ) |
|
|
slot |
◆ setGradientRamp()
◆ setSelectedStopColor
void QgsGradientStopEditor::setSelectedStopColor |
( |
const QColor & |
color | ) |
|
|
slot |
◆ setSelectedStopColorSpec
void QgsGradientStopEditor::setSelectedStopColorSpec |
( |
QColor::Spec |
spec | ) |
|
|
slot |
◆ setSelectedStopDetails
void QgsGradientStopEditor::setSelectedStopDetails |
( |
const QColor & |
color, |
|
|
double |
offset |
|
) |
| |
|
slot |
◆ setSelectedStopDirection
◆ setSelectedStopOffset
void QgsGradientStopEditor::setSelectedStopOffset |
( |
double |
offset | ) |
|
|
slot |
◆ sizeHint()
QSize QgsGradientStopEditor::sizeHint |
( |
| ) |
const |
|
override |
The documentation for this class was generated from the following files: