16#ifndef QGSCOMBINEDSTYLEMODEL_H
17#define QGSCOMBINEDSTYLEMODEL_H
22#include <QConcatenateTablesProxyModel>
52 QVariant
headerData(
int section, Qt::Orientation orientation,
53 int role = Qt::DisplayRole )
const override;
85 QList< QgsStyle * >
styles()
const;
107 QList< QgsStyle * > mStyles;
108 QHash< QgsStyle *, QgsStyleModel * > mOwnedStyleModels;
109 QHash< QgsStyle *, QgsSingleItemModel * > mTitleModels;
111 QList< QSize > mAdditionalSizes;
112 QSet< QgsScreenProperties > mTargetScreenProperties;
void addTargetScreenProperties(const QgsScreenProperties &properties)
Adds additional target screen properties to use when generating icons for Qt::DecorationRole data.
QList< QgsStyle * > styles() const
Returns a list of all styles shown in the model.
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
QgsCombinedStyleModel(QObject *parent=nullptr)
Constructor for QgsCombinedStyleModel with the specified parent object.
void removeStyle(QgsStyle *style)
Removes a style from the model.
void addStyle(QgsStyle *style)
Adds a style to the model.
void addDefaultStyle()
Adds the default style (QgsStyle::defaultStyle()) to the model.
void addDesiredIconSize(QSize size)
Adds an additional icon size to generate for Qt::DecorationRole data.
Stores properties relating to a screen.
A QAbstractItemModel subclass which contains a single read-only item.
A QAbstractItemModel subclass for showing symbol and color ramp entities contained within a QgsStyle ...
A database of saved style entities, including symbols, color ramps, text formats and others.