QgsPresetColorRampWidget class
A widget which allows users to modify the properties of a QgsPresetSchemeColorRamp.
Contents
Base classes
- class QgsPanelWidget
- Base class for any widget that can be shown as a inline panel.
Constructors, destructors, conversion operators
- QgsPresetColorRampWidget(const QgsPresetSchemeColorRamp& ramp, QWidget* parent = nullptr)
- Constructor for QgsPresetColorRampWidget.
Public functions
- auto ramp() const -> QgsPresetSchemeColorRamp
- Returns a color ramp representing the current settings from the dialog.
- void setRamp(const QgsPresetSchemeColorRamp& ramp)
- Sets the color ramp to show in the dialog.
Signals
- void changed()
- Emitted when the dialog settings change.
Function documentation
QgsPresetColorRampWidget:: QgsPresetColorRampWidget(const QgsPresetSchemeColorRamp& ramp,
QWidget* parent = nullptr)
Constructor for QgsPresetColorRampWidget.
| Parameters | |
|---|---|
| ramp | initial ramp to show in dialog |
| parent | parent widget |
QgsPresetSchemeColorRamp QgsPresetColorRampWidget:: ramp() const
Returns a color ramp representing the current settings from the dialog.
void QgsPresetColorRampWidget:: setRamp(const QgsPresetSchemeColorRamp& ramp)
Sets the color ramp to show in the dialog.
| Parameters | |
|---|---|
| ramp | color ramp |