| QGIS API Documentation
    3.20.0-Odense (decaadbb31)
    | 
A dialog which allows users to modify the properties of a QgsCptCityColorRamp. More...
#include <qgscptcitycolorrampdialog.h>

| Signals | |
| void | changed () | 
| Emitted when the dialog settings change.  More... | |
| Public Member Functions | |
| QgsCptCityColorRampDialog (const QgsCptCityColorRamp &ramp, QWidget *parent=nullptr) | |
| Constructor for QgsCptCityColorRampDialog.  More... | |
| QDialogButtonBox * | buttonBox () const | 
| Returns a reference to the dialog's button box.  More... | |
| bool | eventFilter (QObject *obj, QEvent *event) override | 
| QgsCptCityColorRamp | ramp () const | 
| Returns a color ramp representing the current settings from the dialog.  More... | |
| bool | saveAsGradientRamp () const | 
| Returns trueif the ramp should be converted to a QgsGradientColorRamp.  More... | |
| QString | selectedName () const | 
| Returns the name of the ramp currently selected in the dialog.  More... | |
| void | setRamp (const QgsCptCityColorRamp &ramp) | 
| Sets the color ramp to show in the dialog.  More... | |
| Properties | |
| QgsCptCityColorRamp | ramp | 
A dialog which allows users to modify the properties of a QgsCptCityColorRamp.
Definition at line 42 of file qgscptcitycolorrampdialog.h.
| QgsCptCityColorRampDialog::QgsCptCityColorRampDialog | ( | const QgsCptCityColorRamp & | ramp, | 
| QWidget * | parent = nullptr | ||
| ) | 
Constructor for QgsCptCityColorRampDialog.
| ramp | initial ramp to show in dialog | 
| parent | parent widget | 
Definition at line 40 of file qgscptcitycolorrampdialog.cpp.
| QDialogButtonBox * QgsCptCityColorRampDialog::buttonBox | ( | ) | const | 
Returns a reference to the dialog's button box.
Definition at line 508 of file qgscptcitycolorrampdialog.cpp.
| 
 | signal | 
Emitted when the dialog settings change.
| 
 | override | 
Definition at line 551 of file qgscptcitycolorrampdialog.cpp.
| 
 | inline | 
Returns a color ramp representing the current settings from the dialog.
Definition at line 60 of file qgscptcitycolorrampdialog.h.
| bool QgsCptCityColorRampDialog::saveAsGradientRamp | ( | ) | const | 
Returns true if the ramp should be converted to a QgsGradientColorRamp. 
Definition at line 501 of file qgscptcitycolorrampdialog.cpp.
| 
 | inline | 
Returns the name of the ramp currently selected in the dialog.
Definition at line 72 of file qgscptcitycolorrampdialog.h.
| void QgsCptCityColorRampDialog::setRamp | ( | const QgsCptCityColorRamp & | ramp | ) | 
Sets the color ramp to show in the dialog.
| ramp | color ramp | 
Definition at line 132 of file qgscptcitycolorrampdialog.cpp.
| 
 | readwrite | 
Definition at line 1 of file qgscptcitycolorrampdialog.h.