QgsLimitedRandomColorRampDialog class

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

Constructors, destructors, conversion operators

QgsLimitedRandomColorRampDialog(const QgsLimitedRandomColorRamp& ramp, QWidget* parent = nullptr)
Constructor for QgsLimitedRandomColorRampDialog.

Public functions

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

Signals

void changed()
Emitted when the dialog settings change.

Function documentation

QgsLimitedRandomColorRampDialog::QgsLimitedRandomColorRampDialog(const QgsLimitedRandomColorRamp& ramp, QWidget* parent = nullptr)

Constructor for QgsLimitedRandomColorRampDialog.

Parameters
ramp initial ramp to show in dialog
parent parent widget

QgsLimitedRandomColorRamp QgsLimitedRandomColorRampDialog::ramp() const

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

void QgsLimitedRandomColorRampDialog::setRamp(const QgsLimitedRandomColorRamp& ramp)

Sets the color ramp to show in the dialog.

Parameters
ramp color ramp