Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Make identify results indentation more hidpi friendly, also lower bro…
- Loading branch information
Showing
with
4 additions
and
2 deletions.
-
+2
−1
src/app/qgsidentifyresultsdialog.cpp
-
+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 ) |
|
|