QgsGradientColorRampDialog class
A dialog which allows users to modify the properties of a QgsGradientColorRamp.
Contents
Constructors, destructors, conversion operators
- QgsGradientColorRampDialog(const QgsGradientColorRamp& ramp, QWidget* parent = nullptr)
- Constructor for QgsGradientColorRampDialog.
Public functions
- auto ramp() const -> QgsGradientColorRamp
- Returns a color ramp representing the current settings from the dialog.
- void setRamp(const QgsGradientColorRamp& ramp)
- Sets the color ramp to show in the dialog.
Signals
- void changed()
- Emitted when the dialog settings change.
Public slots
Function documentation
QgsGradientColorRampDialog:: QgsGradientColorRampDialog(const QgsGradientColorRamp& ramp,
QWidget* parent = nullptr)
Constructor for QgsGradientColorRampDialog.
| Parameters | |
|---|---|
| ramp | initial ramp to show in dialog |
| parent | parent widget |
QgsGradientColorRamp QgsGradientColorRampDialog:: ramp() const
Returns a color ramp representing the current settings from the dialog.
void QgsGradientColorRampDialog:: setRamp(const QgsGradientColorRamp& ramp)
Sets the color ramp to show in the dialog.
| Parameters | |
|---|---|
| ramp | color ramp |
void QgsGradientColorRampDialog:: setColor1(const QColor& color) public slot
Sets the start color for the gradient ramp.
void QgsGradientColorRampDialog:: setColor2(const QColor& color) public slot
Sets the end color for the gradient ramp.