Skip to content

Commit

Permalink
Auto resize first column in info tool
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Jul 3, 2017
1 parent 6307bc4 commit 502efd1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/qgsidentifyresultsdialog.cpp
Expand Up @@ -447,6 +447,8 @@ void QgsIdentifyResultsDialog::addFeature( const QgsMapToolIdentify::IdentifyRes
void QgsIdentifyResultsDialog::addFeature( QgsVectorLayer *vlayer, const QgsFeature &f, const QMap<QString, QString> &derivedAttributes )
{
QTreeWidgetItem *layItem = layerItem( vlayer );
lstResults->header()->setResizeMode( QHeaderView::ResizeToContents );
lstResults->header()->setStretchLastSection( false );

if ( !layItem )
{
Expand Down

0 comments on commit 502efd1

Please sign in to comment.