16#ifndef QGSSTYLEITEMSLISTWIDGET_H 
   17#define QGSSTYLEITEMSLISTWIDGET_H 
   19#include "ui_qgsstyleitemslistwidgetbase.h" 
   23#include <QStyledItemDelegate> 
   37    explicit QgsReadOnlyStyleModel( 
QgsStyleModel *sourceModel, QObject *parent = 
nullptr );
 
   38    explicit QgsReadOnlyStyleModel( 
QgsStyle *style, QObject *parent = 
nullptr );
 
   41    Qt::ItemFlags flags( 
const QModelIndex &index ) 
const override;
 
   42    QVariant data( 
const QModelIndex &index, 
int role ) 
const override;
 
   52class QgsStyleModelDelegate : 
public QStyledItemDelegate
 
   60    QgsStyleModelDelegate( QObject *parent );
 
   62    QSize sizeHint( 
const QStyleOptionViewItem &option, 
const QModelIndex &index ) 
const override;
 
   63    void paint( QPainter *painter, 
const QStyleOptionViewItem &option, 
const QModelIndex &index ) 
const override;
 
  105    void setEntityTypes( 
const QList<QgsStyle::StyleEntity> &filters ) 
SIP_SKIP;
 
  125    QString currentTagFilter() 
const;
 
  134    QMenu *advancedMenu();
 
  145    void setAdvancedMenu( QMenu *menu );
 
  154    void showAdvancedButton( 
bool enabled );
 
  161    QString currentItemName() 
const;
 
  170    void showEvent( QShowEvent *event ) 
override;
 
  201    void groupsCombo_currentIndexChanged( 
int index );
 
  202    void updateModelFilters();
 
  203    void onSelectionChanged( 
const QModelIndex &index );
 
  204    void populateGroups();
 
  205    void openStyleManager();
 
  210    QgsStyleModelDelegate *mDelegate = 
nullptr;
 
  211    bool mUpdatingGroups = 
false;
 
 
GeometryType
The geometry types are used to group Qgis::WkbType in a coarse way.
 
A model which contains entities from multiple QgsStyle databases.
 
A QAbstractItemModel subclass for showing symbol and color ramp entities contained within a QgsStyle ...
 
A QSortFilterProxyModel subclass for showing filtered symbol and color ramps entries from a QgsStyle ...
 
A database of saved style entities, including symbols, color ramps, text formats and others.
 
StyleEntity
Enum for Entities involved in a style.