|
QGIS API Documentation 3.99.0-Master (f78f5286a64)
|
A widget which presents symbol-level properties (such as size), and allows selection of symbols from stored styles. More...
#include <qgssymbolslistwidget.h>

Public Slots | |
| void | clipFeaturesToggled (bool checked) |
| void | setLineWidth (double width) |
| void | setMarkerAngle (double angle) |
| void | setMarkerSize (double size) |
| void | setSymbolColor (const QColor &color) |
| void | updateDataDefinedLineWidth () |
| void | updateDataDefinedMarkerAngle () |
| void | updateDataDefinedMarkerSize () |
Signals | |
| void | changed () |
| Emitted when the symbol is modified in the widget. | |
Public Member Functions | |
| QgsSymbolsListWidget (QgsSymbol *symbol, QgsStyle *style, QMenu *menu, QWidget *parent, QgsVectorLayer *layer=nullptr) | |
| Constructor for QgsSymbolsListWidget. | |
| ~QgsSymbolsListWidget () override | |
| QgsSymbolWidgetContext | context () const |
| Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts. | |
| const QgsVectorLayer * | layer () const |
| Returns the vector layer associated with the widget. | |
| void | setContext (const QgsSymbolWidgetContext &context) |
| Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts. | |
Public Member Functions inherited from QgsExpressionContextGenerator | |
| virtual | ~QgsExpressionContextGenerator ()=default |
A widget which presents symbol-level properties (such as size), and allows selection of symbols from stored styles.
Definition at line 36 of file qgssymbolslistwidget.h.
| QgsSymbolsListWidget::QgsSymbolsListWidget | ( | QgsSymbol * | symbol, |
| QgsStyle * | style, | ||
| QMenu * | menu, | ||
| QWidget * | parent, | ||
| QgsVectorLayer * | layer = nullptr |
||
| ) |
Constructor for QgsSymbolsListWidget.
| symbol | the symbol |
| style | the style |
| menu | the menu where to show it |
| parent | parent widget |
| layer | associated vector layer |
Definition at line 34 of file qgssymbolslistwidget.cpp.
|
override |
Definition at line 143 of file qgssymbolslistwidget.cpp.
|
signal |
Emitted when the symbol is modified in the widget.
|
slot |
Definition at line 423 of file qgssymbolslistwidget.cpp.
| QgsSymbolWidgetContext QgsSymbolsListWidget::context | ( | ) | const |
Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
Definition at line 262 of file qgssymbolslistwidget.cpp.
|
inline |
Returns the vector layer associated with the widget.
Definition at line 70 of file qgssymbolslistwidget.h.
| void QgsSymbolsListWidget::setContext | ( | const QgsSymbolWidgetContext & | context | ) |
Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
| context | symbol widget context |
Definition at line 252 of file qgssymbolslistwidget.cpp.
|
slot |
Definition at line 497 of file qgssymbolslistwidget.cpp.
|
slot |
Definition at line 438 of file qgssymbolslistwidget.cpp.
|
slot |
Definition at line 467 of file qgssymbolslistwidget.cpp.
|
slot |
Definition at line 432 of file qgssymbolslistwidget.cpp.
|
slot |
Definition at line 506 of file qgssymbolslistwidget.cpp.
|
slot |
Definition at line 447 of file qgssymbolslistwidget.cpp.
|
slot |
Definition at line 476 of file qgssymbolslistwidget.cpp.