Skip to content

Commit

Permalink
Fix layer styling dock has tiny icons on hidpi
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 24, 2018
1 parent 87aa932 commit 39f36c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
4 changes: 4 additions & 0 deletions src/app/qgslayerstylingwidget.cpp
Expand Up @@ -46,6 +46,7 @@
#include "qgsmaplayerstylemanagerwidget.h"
#include "qgsruntimeprofiler.h"
#include "qgsrasterminmaxwidget.h"
#include "qgisapp.h"

#ifdef HAVE_3D
#include "qgsvectorlayer3drendererwidget.h"
Expand All @@ -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;
Expand Down
12 changes: 0 additions & 12 deletions src/ui/qgsmapstylingwidgetbase.ui
Expand Up @@ -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>
Expand All @@ -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>
Expand Down

0 comments on commit 39f36c3

Please sign in to comment.