61 QVBoxLayout *layout =
new QVBoxLayout(
this );
62 layout->setContentsMargins( 0, 0, 0, 0 );
63 layout->addWidget( mSelector );
68 QAction *actionLevels = advMenu->addAction( tr(
"Symbol Levels…" ) );
69 connect( actionLevels, &QAction::triggered,
this, &QgsSingleSymbolRendererWidget::showSymbolLevels );
72 QAction *actionDdsLegend = advMenu->addAction( tr(
"Data-defined Size Legend…" ) );
74 connect( actionDdsLegend, &QAction::triggered,
this, &QgsSingleSymbolRendererWidget::dataDefinedSizeLegend );
107 void QgsSingleSymbolRendererWidget::changeSingleSymbol()
114 void QgsSingleSymbolRendererWidget::showSymbolLevels()
119 void QgsSingleSymbolRendererWidget::dataDefinedSizeLegend()
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.
QgsWkbTypes::GeometryType geometryType() const
Returns point, line or polygon.
static QgsSymbol * defaultSymbol(QgsWkbTypes::GeometryType geomType)
Returns new default symbol for 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
Gets a deep copy of this symbol.
QgsDataDefinedSizeLegend * dataDefinedSizeLegend() const
Returns configuration of appearance of legend when using data-defined size for marker symbols...
Represents a vector layer which manages a vector based data sets.
QgsSymbol * symbol() const
Returns the symbol which will be rendered for every feature.