67 QVBoxLayout *layout =
new QVBoxLayout(
this );
68 layout->setContentsMargins( 0, 0, 0, 0 );
69 layout->addWidget( mSelector );
74 QAction *actionLevels = advMenu->addAction( tr(
"Symbol Levels…" ) );
75 connect( actionLevels, &QAction::triggered,
this, &QgsSingleSymbolRendererWidget::showSymbolLevels );
78 QAction *actionDdsLegend = advMenu->addAction( tr(
"Data-defined Size Legend…" ) );
80 connect( actionDdsLegend, &QAction::triggered,
this, &QgsSingleSymbolRendererWidget::dataDefinedSizeLegend );
113 void QgsSingleSymbolRendererWidget::changeSingleSymbol()
120 void QgsSingleSymbolRendererWidget::showSymbolLevels()
125 void QgsSingleSymbolRendererWidget::dataDefinedSizeLegend()
QgsSymbol * symbol() const
Returns the symbol which will be rendered for every feature.
Abstract base class for all rendered symbols.
void setDataDefinedSizeLegend(QgsDataDefinedSizeLegend *settings)
Configures appearance of legend when renderer is configured to use data-defined size for marker symbo...
static QgsSingleSymbolRenderer * convertFromRenderer(const QgsFeatureRenderer *renderer)
Creates a new single symbol renderer from an existing renderer.
A marker symbol type, for rendering Point and MultiPoint geometries.
QgsDataDefinedSizeLegend * dataDefinedSizeLegend() const
Returns configuration of appearance of legend when using data-defined size for marker symbols...
static QgsSymbol * defaultSymbol(QgsWkbTypes::GeometryType geomType)
Returns a new default symbol for the specified geometry type.
Contains settings which reflect the context in which a symbol (or renderer) widget is shown...
void setSymbol(QgsSymbol *s)
Sets the symbol which will be rendered for every feature.
virtual QgsSymbol * clone() const =0
Returns a deep copy of this symbol.
SymbolType type() const
Returns the symbol's type.
QgsWkbTypes::GeometryType geometryType() const
Returns point, line or polygon.
Represents a vector layer which manages a vector based data sets.