Skip to content

Commit

Permalink
Fix panel titles
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 29, 2016
1 parent d32008a commit c1bff16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/symbology-ng/qgspointclusterrendererwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ void QgsPointClusterRendererWidget::on_mRendererSettingsButton_clicked()
if ( m )
{
QgsRendererWidget* w = m->createRendererWidget( mLayer, mStyle, mRenderer->embeddedRenderer()->clone() );
w->setPanelTitle( tr( "Renderer settings" ) );
w->setMapCanvas( mMapCanvas );
QgsExpressionContextScope scope;
scope.setVariable( QgsExpressionContext::EXPR_CLUSTER_COLOR, "" );
Expand Down Expand Up @@ -182,6 +183,7 @@ void QgsPointClusterRendererWidget::on_mCenterSymbolPushButton_clicked()
}
QgsMarkerSymbol* markerSymbol = mRenderer->clusterSymbol()->clone();
QgsSymbolSelectorWidget* dlg = new QgsSymbolSelectorWidget( markerSymbol, QgsStyle::defaultStyle(), mLayer, this );
dlg->setPanelTitle( tr( "Cluster symbol" ) );
dlg->setDockMode( this->dockMode() );
dlg->setMapCanvas( mMapCanvas );
QgsExpressionContextScope scope;
Expand Down
2 changes: 2 additions & 0 deletions src/gui/symbology-ng/qgspointdisplacementrendererwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ void QgsPointDisplacementRendererWidget::on_mRendererSettingsButton_clicked()
if ( m )
{
QgsRendererWidget* w = m->createRendererWidget( mLayer, mStyle, mRenderer->embeddedRenderer()->clone() );
w->setPanelTitle( tr( "Renderer settings" ) );
w->setMapCanvas( mMapCanvas );
QgsExpressionContextScope scope;
scope.setVariable( QgsExpressionContext::EXPR_CLUSTER_COLOR, "" );
Expand Down Expand Up @@ -357,6 +358,7 @@ void QgsPointDisplacementRendererWidget::on_mCenterSymbolPushButton_clicked()
QgsMarkerSymbol* markerSymbol = mRenderer->centerSymbol()->clone();
QgsSymbolSelectorWidget* dlg = new QgsSymbolSelectorWidget( markerSymbol, QgsStyle::defaultStyle(), mLayer, this );
dlg->setMapCanvas( mMapCanvas );
dlg->setPanelTitle( tr( "Center symbol" ) );

QgsExpressionContextScope scope;
scope.setVariable( QgsExpressionContext::EXPR_CLUSTER_COLOR, "" );
Expand Down

0 comments on commit c1bff16

Please sign in to comment.