16#ifndef QGSDATADEFINEDSIZELEGENDWIDGET_H
17#define QGSDATADEFINEDSIZELEGENDWIDGET_H
23#include "ui_qgsdatadefinedsizelegendwidget.h"
28#include <QStyledItemDelegate>
30class QStandardItemModel;
68 void removeSizeClass();
69 void onSizeClassesChanged();
72 std::unique_ptr<QgsMarkerSymbol> mSourceSymbol;
73 bool mOverrideSymbol =
false;
80 QStandardItemModel *mSizeClassesModel =
nullptr;
87class SizeClassDelegate :
public QStyledItemDelegate
92 SizeClassDelegate( QObject *parent )
93 : QStyledItemDelegate( parent )
97 QWidget *createEditor( QWidget *parent,
const QStyleOptionViewItem &,
const QModelIndex & )
const override
99 QLineEdit *lineEdit =
new QLineEdit( parent );
101 lineEdit->setValidator( validator );
Object that keeps configuration of appearance of marker symbol's data-defined size in legend.
QgsDoubleValidator is a QLineEdit Validator that combines QDoubleValidator and QRegularExpressionVali...
Layer tree node points to a map layer.
The QgsLayerTreeModel class is model implementation for Qt item views framework.
Namespace with helper functions for layer tree operations.
Map canvas is a class for displaying all GIS data types on a canvas.
A marker symbol type, for rendering Point and MultiPoint geometries.
A store for object properties.
Represents a vector layer which manages a vector based data sets.