Skip to content
Permalink
Browse files

Make identify results indentation more hidpi friendly, also lower bro…

…wser tree idendation
  • Loading branch information
nyalldawson committed Dec 30, 2020
1 parent 112aaf0 commit c0576d88ebe4f154bbdd1874d01b499a60f880cc
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 c0576d8

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