mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-06 00:05:02 -05:00
More build fixes
This commit is contained in:
parent
0bd29c3f98
commit
5cff21f9e4
@ -172,7 +172,8 @@ void QgsDataDefinedSizeLegendDialog::changeSymbol()
|
||||
ec << QgsExpressionContextUtils::mapSettingsScope( mMapCanvas->mapSettings() );
|
||||
context.setExpressionContext( &ec );
|
||||
|
||||
std::unique_ptr<QgsVectorLayer> layer( new QgsVectorLayer( "Point", "tmp", "memory" ) );
|
||||
QString crsAuthId = mMapCanvas ? mMapCanvas->mapSettings().destinationCrs().authid() : QString();
|
||||
std::unique_ptr<QgsVectorLayer> layer( new QgsVectorLayer( "Point?crs=" + crsAuthId, "tmp", "memory" ) );
|
||||
|
||||
QgsSymbolSelectorDialog d( newSymbol.get(), QgsStyle::defaultStyle(), layer.get(), this );
|
||||
d.setContext( context );
|
||||
|
@ -64,7 +64,8 @@ QgsSingleSymbolRendererWidget::QgsSingleSymbolRendererWidget( QgsVectorLayer *la
|
||||
// advanced actions - data defined rendering
|
||||
QMenu *advMenu = mSelector->advancedMenu();
|
||||
|
||||
advMenu->addAction( tr( "Symbol levels..." ), this, &QgsSingleSymbolRendererWidget::showSymbolLevels );
|
||||
QAction *actionLevels = advMenu->addAction( tr( "Symbol levels..." ) );
|
||||
connect( actionLevels, &QAction::triggered, this, &QgsSingleSymbolRendererWidget::showSymbolLevels );
|
||||
if ( mSingleSymbol->type() == QgsSymbol::Marker )
|
||||
{
|
||||
QAction *actionDdsLegend = advMenu->addAction( tr( "Data-defined size legend..." ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user