A reusable widget for showing a filtered list of entities from a QgsStyle database.
More...
#include <qgsstyleitemslistwidget.h>
A reusable widget for showing a filtered list of entities from a QgsStyle database.
- Since
- QGIS 3.10
Definition at line 79 of file qgsstyleitemslistwidget.h.
◆ QgsStyleItemsListWidget()
QgsStyleItemsListWidget::QgsStyleItemsListWidget |
( |
QWidget *parent |
SIP_TRANSFERTHIS | ) |
|
◆ advancedMenu()
QMenu * QgsStyleItemsListWidget::advancedMenu |
( |
| ) |
|
◆ currentEntityType()
◆ currentItemName()
QString QgsStyleItemsListWidget::currentItemName |
( |
| ) |
const |
◆ currentTagFilter()
QString QgsStyleItemsListWidget::currentTagFilter |
( |
| ) |
const |
◆ saveEntity
void QgsStyleItemsListWidget::saveEntity |
( |
| ) |
|
|
signal |
Emitted when the user has opted to save a new entity to the style database, by clicking the "Save" button in the widget.
It is the caller's responsibility to handle this in an appropriate manner given the context of the widget.
◆ selectionChanged
Emitted when the selected item is changed in the widget.
- Parameters
-
name | Newly selected item name |
type | Newly selected item type |
◆ selectionChangedWithStylePath
void QgsStyleItemsListWidget::selectionChangedWithStylePath |
( |
const QString & |
name, |
|
|
QgsStyle::StyleEntity |
type, |
|
|
const QString & |
stylePath |
|
) |
| |
|
signal |
Emitted when the selected item is changed in the widget.
- Parameters
-
name | Newly selected item name |
type | Newly selected item type |
stylePath | file path to associated style database |
- Since
- QGIS 3.26
◆ setAdvancedMenu()
void QgsStyleItemsListWidget::setAdvancedMenu |
( |
QMenu * |
menu | ) |
|
Sets the widget's advanced menu, which is shown when the user clicks the "Advanced" button in the widget's GUI.
Ownership of menu is NOT transferred to the widget.
- See also
- advancedMenu()
- Note
- Not available in Python bindings.
Definition at line 366 of file qgsstyleitemslistwidget.cpp.
◆ setEntityType()
◆ setEntityTypes()
Sets the types of style entity to show in the widget.
- Note
- Not available in Python bindings.
Definition at line 329 of file qgsstyleitemslistwidget.cpp.
◆ setLayerType()
◆ setStyle()
void QgsStyleItemsListWidget::setStyle |
( |
QgsStyle * |
style | ) |
|
Sets the style database associated with the widget.
Ownership of style is not transferred, and the caller is responsible for ensuring that it exists for the lifetime of the widget.
Definition at line 246 of file qgsstyleitemslistwidget.cpp.
◆ setSymbolType()
◆ showAdvancedButton()
void QgsStyleItemsListWidget::showAdvancedButton |
( |
bool |
enabled | ) |
|
◆ showEvent()
void QgsStyleItemsListWidget::showEvent |
( |
QShowEvent * |
event | ) |
|
|
overrideprotected |
The documentation for this class was generated from the following files: