QgsColorBrewerColorRampDialog class

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

Constructors, destructors, conversion operators

QgsColorBrewerColorRampDialog(const QgsColorBrewerColorRamp& ramp, QWidget* parent = nullptr)
Constructor for QgsColorBrewerColorRampDialog.

Public functions

auto ramp() const -> QgsColorBrewerColorRamp
Returns a color ramp representing the current settings from the dialog.
void setRamp(const QgsColorBrewerColorRamp& ramp)
Sets the color ramp to show in the dialog.

Signals

void changed()
Emitted when the dialog settings change.

Function documentation

QgsColorBrewerColorRampDialog::QgsColorBrewerColorRampDialog(const QgsColorBrewerColorRamp& ramp, QWidget* parent = nullptr)

Constructor for QgsColorBrewerColorRampDialog.

Parameters
ramp initial ramp to show in dialog
parent parent widget

QgsColorBrewerColorRamp QgsColorBrewerColorRampDialog::ramp() const

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

void QgsColorBrewerColorRampDialog::setRamp(const QgsColorBrewerColorRamp& ramp)

Sets the color ramp to show in the dialog.

Parameters
ramp color ramp