Skip to content

Commit 502efd1

Browse files
committedJul 3, 2017
Auto resize first column in info tool
1 parent 6307bc4 commit 502efd1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/app/qgsidentifyresultsdialog.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,8 @@ void QgsIdentifyResultsDialog::addFeature( const QgsMapToolIdentify::IdentifyRes
447447
void QgsIdentifyResultsDialog::addFeature( QgsVectorLayer *vlayer, const QgsFeature &f, const QMap<QString, QString> &derivedAttributes )
448448
{
449449
QTreeWidgetItem *layItem = layerItem( vlayer );
450+
lstResults->header()->setResizeMode( QHeaderView::ResizeToContents );
451+
lstResults->header()->setStretchLastSection( false );
450452

451453
if ( !layItem )
452454
{

0 commit comments

Comments
 (0)
Please sign in to comment.