A button for creating and modifying QgsLegendPatchShape settings.
More...
#include <qgslegendpatchshapebutton.h>
|
void | changed () |
| Emitted when the shape's settings are changed. More...
|
|
A button for creating and modifying QgsLegendPatchShape settings.
- Since
- QGIS 3.14
Definition at line 36 of file qgslegendpatchshapebutton.h.
◆ QgsLegendPatchShapeButton()
QgsLegendPatchShapeButton::QgsLegendPatchShapeButton |
( |
QWidget * |
parent = nullptr , |
|
|
const QString & |
dialogTitle = QString() |
|
) |
| |
Construct a new patch shape button with the specified parent widget.
Use dialogTitle string to define the title to show in the legend patch shape widget.
Definition at line 27 of file qgslegendpatchshapebutton.cpp.
◆ ~QgsLegendPatchShapeButton()
QgsLegendPatchShapeButton::~QgsLegendPatchShapeButton |
( |
| ) |
|
|
overridedefault |
◆ changed
void QgsLegendPatchShapeButton::changed |
( |
| ) |
|
|
signal |
◆ changeEvent()
void QgsLegendPatchShapeButton::changeEvent |
( |
QEvent * |
e | ) |
|
|
overrideprotected |
◆ dialogTitle()
QString QgsLegendPatchShapeButton::dialogTitle |
( |
| ) |
const |
◆ messageBar()
◆ minimumSizeHint()
QSize QgsLegendPatchShapeButton::minimumSizeHint |
( |
| ) |
const |
|
override |
◆ mousePressEvent()
void QgsLegendPatchShapeButton::mousePressEvent |
( |
QMouseEvent * |
e | ) |
|
|
overrideprotected |
◆ resizeEvent()
void QgsLegendPatchShapeButton::resizeEvent |
( |
QResizeEvent * |
event | ) |
|
|
overrideprotected |
◆ setDialogTitle()
void QgsLegendPatchShapeButton::setDialogTitle |
( |
const QString & |
title | ) |
|
◆ setMessageBar()
void QgsLegendPatchShapeButton::setMessageBar |
( |
QgsMessageBar * |
bar | ) |
|
Sets the message bar associated with the widget.
This allows the widget to push feedback messages to the appropriate message bar.
- See also
- messageBar()
- Since
- QGIS 3.6
Definition at line 137 of file qgslegendpatchshapebutton.cpp.
◆ setPreviewSymbol()
void QgsLegendPatchShapeButton::setPreviewSymbol |
( |
QgsSymbol * |
symbol | ) |
|
Sets the symbol to use for previewing the legend patch shape.
Ownership is transferred to the button. It is the caller's responsibility to ensure that the symbol type matches the button's symbolType()
Definition at line 92 of file qgslegendpatchshapebutton.cpp.
◆ setShape
◆ setSymbolType()
Sets the symbol type which the button requires.
If the type differs from the current symbol type, the symbol will be reset to a default symbol style of the new type.
- See also
- symbolType()
Definition at line 60 of file qgslegendpatchshapebutton.cpp.
◆ setToDefault
void QgsLegendPatchShapeButton::setToDefault |
( |
| ) |
|
|
slot |
◆ shape()
◆ showEvent()
void QgsLegendPatchShapeButton::showEvent |
( |
QShowEvent * |
e | ) |
|
|
overrideprotected |
◆ sizeHint()
QSize QgsLegendPatchShapeButton::sizeHint |
( |
| ) |
const |
|
override |
◆ symbolType()
The documentation for this class was generated from the following files: