QgsPresetColorRampDialog class

A dialog which allows users to modify the properties of a QgsPresetSchemeColorRamp.

Constructors, destructors, conversion operators

QgsPresetColorRampDialog(const QgsPresetSchemeColorRamp& ramp, QWidget* parent = nullptr)
Constructor for QgsPresetColorRampDialog.

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

QgsPresetColorRampDialog::QgsPresetColorRampDialog(const QgsPresetSchemeColorRamp& ramp, QWidget* parent = nullptr)

Constructor for QgsPresetColorRampDialog.

Parameters
ramp initial ramp to show in dialog
parent parent widget

QgsPresetSchemeColorRamp QgsPresetColorRampDialog::ramp() const

Returns a color ramp representing the current settings from the dialog.

void QgsPresetColorRampDialog::setRamp(const QgsPresetSchemeColorRamp& ramp)

Sets the color ramp to show in the dialog.

Parameters
ramp color ramp