QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
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.
 

Public Member Functions

 QgsColorBrewerColorRampDialog (const QgsColorBrewerColorRamp &ramp, QWidget *parent=nullptr)
 Constructor for QgsColorBrewerColorRampDialog.
 
QDialogButtonBox * buttonBox () const
 Returns a reference to the dialog's button box.
 
QgsColorBrewerColorRamp ramp () const
 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.
 

Properties

QgsColorBrewerColorRamp ramp
 

Detailed Description

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

Definition at line 84 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 126 of file qgscolorbrewercolorrampdialog.cpp.

Member Function Documentation

◆ buttonBox()

QDialogButtonBox * QgsColorBrewerColorRampDialog::buttonBox ( ) const

Returns a reference to the dialog's button box.

Since
QGIS 3.10

Definition at line 143 of file qgscolorbrewercolorrampdialog.cpp.

◆ 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 102 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 109 of file qgscolorbrewercolorrampdialog.h.

Property Documentation

◆ ramp

QgsColorBrewerColorRamp QgsColorBrewerColorRampDialog::ramp
readwrite

Definition at line 87 of file qgscolorbrewercolorrampdialog.h.


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