Skip to content
Permalink
Browse files

fix toggling of map styling dock visibility from the layer tree

  • Loading branch information
jef-n committed Apr 21, 2016
1 parent 0875c68 commit 9bbbe6d9efce97ee1a117a093532fd7dfa2407b3
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/app/qgisapp.cpp
@@ -722,8 +722,8 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
mMapStylingDock->setWindowTitle( tr( "Map Styling" ) );
mMapStyleWidget = new QgsMapStylingWidget( mMapCanvas );
mMapStylingDock->setWidget( mMapStyleWidget );

connect( mMapStyleWidget, SIGNAL( styleChanged( QgsMapLayer* ) ), this, SLOT( updateLabelToolButtons() ) );
connect( mMapStylingDock, SIGNAL( visibilityChanged( bool ) ), mActionStyleDock, SLOT( setChecked( bool ) ) );

addDockWidget( Qt::RightDockWidgetArea, mMapStylingDock );
mMapStylingDock->hide();
@@ -2768,7 +2768,6 @@ void QgisApp::initLayerTreeView()
mActionStyleDock->setToolTip( tr( "Open the map styling dock" ) );
mActionStyleDock->setIcon( QgsApplication::getThemeIcon( "propertyicons/symbology.png" ) );
connect( mActionStyleDock, SIGNAL( toggled( bool ) ), this, SLOT( mapStyleDock( bool ) ) );
connect( mMapStylingDock, SIGNAL( visibilityChanged( bool ) ), mActionStyleDock, SLOT( setChecked( bool ) ) );

// expand / collapse tool buttons
QAction* actionExpandAll = new QAction( tr( "Expand All" ), this );

0 comments on commit 9bbbe6d

Please sign in to comment.
You can’t perform that action at this time.