|
| QgsColorRampButton (QWidget *parent=nullptr, const QString &dialogTitle=QString()) |
| Construct a new color ramp button. More...
|
|
| ~QgsColorRampButton () override |
|
bool | acceptLiveUpdates () const |
| Returns whether the button accepts live updates from QgsColorRampDialog. More...
|
|
QgsColorRamp * | colorRamp () const |
| Returns a copy of the current color ramp. More...
|
|
QString | colorRampDialogTitle () const |
| Returns the title for the color ramp dialog window. More...
|
|
QString | colorRampName () const |
| Returns the name of the current color ramp when it's available in the style manager. More...
|
|
QString | context () const |
| Returns the context string for the color ramp button. More...
|
|
QgsColorRamp * | defaultColorRamp () const |
| Returns a copy of the default color ramp for the button, which is shown in the button's drop-down menu for the "default color ramp" option. More...
|
|
bool | isNull () const |
| Returns true if the current color ramp is null. More...
|
|
bool | isRandomColorRamp () const |
| Returns true if the current color ramp is random. More...
|
|
void | setAcceptLiveUpdates (const bool accept) |
| Sets whether the button accepts live updates from QgsColorRampDialog. More...
|
|
void | setColorRampDialogTitle (const QString &title) |
| Set the title for the color ramp dialog window. More...
|
|
void | setColorRampName (const QString &name) |
| Sets the name of the current color ramp when it's available in the style manager. More...
|
|
void | setContext (const QString &context) |
| Sets the context string for the color ramp button. More...
|
|
void | setDefaultColorRamp (QgsColorRamp *colorramp) |
| Sets the default color ramp for the button, which is shown in the button's drop-down menu for the "default color ramp" option. More...
|
|
void | setShowGradientOnly (bool gradientonly) |
| Sets whether the color ramp button only shows gradient type ramps. More...
|
|
void | setShowMenu (bool showMenu) |
| Sets whether the drop-down menu should be shown for the button. More...
|
|
void | setShowNull (bool showNull) |
| Sets whether a set to null (clear) option is shown in the button's drop-down menu. More...
|
|
void | setShowRandomColorRamp (bool showRandom) |
| Sets whether a random colors option is shown in the button's drop-down menu. More...
|
|
bool | showGradientOnly () const |
| Returns true if the color ramp button only shows gradient type ramps. More...
|
|
bool | showMenu () const |
| Returns whether the drop-down menu is shown for the button. More...
|
|
bool | showNull () const |
| Returns whether the set to null (clear) option is shown in the button's drop-down menu. More...
|
|
bool | showRandomColorRamp () const |
| Returns whether random colors option is shown in the button's drop-down menu. More...
|
|
QSize | sizeHint () const override |
|