Skip to content

Commit

Permalink
layer tree & 3d view toolbar panel size fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Oct 13, 2017
1 parent ca0aa72 commit 25d40f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/app/3d/qgs3dmapcanvasdockwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

#include "qgs3dmapcanvasdockwidget.h"

#include "qgisapp.h"
#include "qgs3dmapcanvas.h"
#include "qgs3dmapconfigwidget.h"
#include "qgsmapcanvas.h"
Expand All @@ -35,7 +36,7 @@ Qgs3DMapCanvasDockWidget::Qgs3DMapCanvasDockWidget( QWidget *parent )
QWidget *contentsWidget = new QWidget( this );

QToolBar *toolBar = new QToolBar( contentsWidget );
toolBar->setIconSize( QSize( 16, 16 ) );
toolBar->setIconSize( QgisApp::instance()->iconSize( true ) );
toolBar->addAction( QgsApplication::getThemeIcon( QStringLiteral( "mActionZoomFullExtent.svg" ) ), "Reset view", this, &Qgs3DMapCanvasDockWidget::resetView );
toolBar->addAction( QgsApplication::getThemeIcon( QStringLiteral( "mIconProperties.svg" ) ), "Configure", this, &Qgs3DMapCanvasDockWidget::configure );

Expand Down
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3462,7 +3462,7 @@ void QgisApp::initLayerTreeView()
connect( actionCollapseAll, &QAction::triggered, mLayerTreeView, &QgsLayerTreeView::collapseAllNodes );

QToolBar *toolbar = new QToolBar();
toolbar->setIconSize( QSize( 16, 16 ) );
toolbar->setIconSize( iconSize( true ) );
toolbar->addAction( mActionStyleDock );
toolbar->addAction( actionAddGroup );
toolbar->addWidget( btnVisibilityPresets );
Expand Down

0 comments on commit 25d40f3

Please sign in to comment.