QGIS API Documentation  2.99.0-Master (0cba29c)
Signals | Public Member Functions | Properties | List of all members
QgsColorBrewerColorRampDialog Class Reference

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

#include <qgscolorbrewercolorrampdialog.h>

Inheritance diagram for QgsColorBrewerColorRampDialog:
Inheritance graph
[legend]

Signals

void changed ()
 Emitted when the dialog settings change. More...
 

Public Member Functions

 QgsColorBrewerColorRampDialog (const QgsColorBrewerColorRamp &ramp, QWidget *parent=nullptr)
 Constructor for QgsColorBrewerColorRampDialog. More...
 
QgsColorBrewerColorRamp ramp () const
 Returns a color ramp representing the current settings from the dialog. More...
 
void setRamp (const QgsColorBrewerColorRamp &ramp)
 Sets the color ramp to show in the dialog. More...
 

Properties

QgsColorBrewerColorRamp ramp
 

Detailed Description

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

Since
QGIS 3.0

Definition at line 80 of file qgscolorbrewercolorrampdialog.h.

Constructor & Destructor Documentation

◆ QgsColorBrewerColorRampDialog()

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

Constructor for QgsColorBrewerColorRampDialog.

Parameters
rampinitial ramp to show in dialog
parentparent widget

Definition at line 121 of file qgscolorbrewercolorrampdialog.cpp.

Member Function Documentation

◆ changed

void QgsColorBrewerColorRampDialog::changed ( )
signal

Emitted when the dialog settings change.

◆ ramp()

QgsColorBrewerColorRamp QgsColorBrewerColorRampDialog::ramp ( ) const
inline

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

See also
setRamp()

Definition at line 96 of file qgscolorbrewercolorrampdialog.h.

◆ setRamp()

void QgsColorBrewerColorRampDialog::setRamp ( const QgsColorBrewerColorRamp ramp)
inline

Sets the color ramp to show in the dialog.

Parameters
rampcolor ramp
See also
ramp()

Definition at line 102 of file qgscolorbrewercolorrampdialog.h.

Property Documentation

◆ ramp

QgsColorBrewerColorRamp QgsColorBrewerColorRampDialog::ramp
readwrite

Definition at line 83 of file qgscolorbrewercolorrampdialog.h.


The documentation for this class was generated from the following files: