|
| QgsColorButton (QWidget *parent=nullptr, const QString &cdt=QString(), QgsColorSchemeRegistry *registry=nullptr) |
| Construct a new color ramp button. More...
|
|
bool | allowOpacity () const |
| Returns whether opacity modification (transparency) is permitted for the color. More...
|
|
Behavior | behavior () const |
| Returns the behavior for when the button is clicked. More...
|
|
QColor | color () const |
| Returns the currently selected color. More...
|
|
QString | colorDialogTitle () const |
| Returns the title for the color chooser dialog window. More...
|
|
QgsColorSchemeRegistry * | colorSchemeRegistry () |
| Returns the color scheme registry for the button, which controls the color swatch grids that are shown in the button's drop-down menu. More...
|
|
QString | context () const |
| Returns the context string for the color button. More...
|
|
QColor | defaultColor () const |
| Returns the default color for the button, which is shown in the button's drop-down menu for the "default color" option. More...
|
|
bool | isNull () const |
| Returns true if the current color is null. More...
|
|
QString | linkedProjectColorName () const |
| Returns the linked project color name, if set. More...
|
|
void | linkToProjectColor (const QString &name) |
| Sets the button to link to an existing project color, by color name. More...
|
|
QSize | minimumSizeHint () const override |
|
QString | noColorString () const |
| Returns the string used for the "no color" option in the button's drop-down menu. More...
|
|
void | setAllowOpacity (bool allowOpacity) |
| Sets whether opacity modification (transparency) is permitted for the color. More...
|
|
void | setBehavior (Behavior behavior) |
| Sets the behavior for when the button is clicked. More...
|
|
void | setColorDialogTitle (const QString &title) |
| Set the title for the color chooser dialog window. More...
|
|
void | setColorSchemeRegistry (QgsColorSchemeRegistry *registry) |
| Sets the color scheme registry for the button, which controls the color swatch grids that are shown in the button's drop-down menu. More...
|
|
void | setContext (const QString &context) |
| Sets the context string for the color button. More...
|
|
void | setDefaultColor (const QColor &color) |
| Sets the default color for the button, which is shown in the button's drop-down menu for the "default color" option. More...
|
|
void | setNoColorString (const QString &noColorString) |
| Sets the string to use for the "no color" option in the button's drop-down menu. More...
|
|
void | setShowMenu (bool showMenu) |
| Sets whether the drop-down menu should be shown for the button. More...
|
|
void | setShowNoColor (const bool showNoColorOption) |
| Sets whether the "no color" option should be shown in the button's drop-down menu. More...
|
|
void | setShowNull (bool showNull, const QString &nullString=QString()) |
| Sets whether a set to null (clear) option is shown in the button's drop-down menu. More...
|
|
bool | showMenu () const |
| Returns whether the drop-down menu is shown for the button. More...
|
|
bool | showNoColor () const |
| Returns whether the "no color" option is shown in the button's drop-down menu. More...
|
|
bool | showNull () const |
| Returns whether the set to null (clear) option is shown in the button's drop-down menu. More...
|
|
QSize | sizeHint () const override |
|