Skip to content
Permalink
Browse files

Merge pull request #40795 from nyalldawson/indent2

Make identify results indentation more hidpi friendly, also lower browser tree indentation
  • Loading branch information
m-kuhn committed Dec 30, 2020
2 parents 112aaf0 + c0576d8 commit 48d587e9c23b0e4649eccb9b856bf50e52d0a5f4
Showing with 4 additions and 2 deletions.
  1. +2 −1 src/app/qgsidentifyresultsdialog.cpp
  2. +2 −1 src/gui/qgsbrowsertreeview.cpp
@@ -57,6 +57,7 @@
#include "qgsfeatureiterator.h"
#include "qgsfeaturestore.h"
#include "qgsgeometry.h"
#include "qgsguiutils.h"
#include "qgshighlight.h"
#include "qgsmaptoolidentifyaction.h"
#include "qgsidentifyresultsdialog.h"
@@ -367,7 +368,7 @@ QgsIdentifyResultsDialog::QgsIdentifyResultsDialog( QgsMapCanvas *canvas, QWidge
mActionCopy->setEnabled( false );
lstResults->setColumnCount( 2 );
lstResults->sortByColumn( -1, Qt::AscendingOrder );
lstResults->setIndentation( 10 );
lstResults->setIndentation( QgsGuiUtils::scaleIconSize( 12 ) );
setColumnText( 0, tr( "Feature" ) );
setColumnText( 1, tr( "Value" ) );

@@ -17,13 +17,14 @@
#include "qgsbrowserguimodel.h"
#include "qgsbrowsertreeview.h"
#include "qgslogger.h"

#include "qgsguiutils.h"

QgsBrowserTreeView::QgsBrowserTreeView( QWidget *parent )
: QTreeView( parent )
, mSettingsSection( QStringLiteral( "browser" ) )
{
setEditTriggers( QAbstractItemView::EditKeyPressed );
setIndentation( QgsGuiUtils::scaleIconSize( 16 ) );
}

void QgsBrowserTreeView::setModel( QAbstractItemModel *model )

0 comments on commit 48d587e

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