Skip to content
Permalink
Browse files

Fix layer styling dock has tiny icons on hidpi

  • Loading branch information
nyalldawson committed Sep 24, 2018
1 parent 87aa932 commit 39f36c3db45c03daca823a246c3c8186a73c1adf
Showing with 4 additions and 12 deletions.
  1. +4 −0 src/app/qgslayerstylingwidget.cpp
  2. +0 −12 src/ui/qgsmapstylingwidgetbase.ui
@@ -46,6 +46,7 @@
#include "qgsmaplayerstylemanagerwidget.h"
#include "qgsruntimeprofiler.h"
#include "qgsrasterminmaxwidget.h"
#include "qgisapp.h"

#ifdef HAVE_3D
#include "qgsvectorlayer3drendererwidget.h"
@@ -62,6 +63,9 @@ QgsLayerStylingWidget::QgsLayerStylingWidget( QgsMapCanvas *canvas, const QList<
{
setupUi( this );

mOptionsListWidget->setIconSize( QgisApp::instance()->iconSize( false ) );
mOptionsListWidget->setMaximumWidth( static_cast< int >( mOptionsListWidget->iconSize().width() * 1.18 ) );

connect( QgsProject::instance(), static_cast < void ( QgsProject::* )( QgsMapLayer * ) > ( &QgsProject::layerWillBeRemoved ), this, &QgsLayerStylingWidget::layerAboutToBeRemoved );

QgsSettings settings;
@@ -197,12 +197,6 @@
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>38</width>
<height>16777215</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
@@ -212,12 +206,6 @@
<property name="editTriggers">
<set>QAbstractItemView::NoEditTriggers</set>
</property>
<property name="iconSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
<property name="textElideMode">
<enum>Qt::ElideNone</enum>
</property>

0 comments on commit 39f36c3

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