Skip to content

Commit

Permalink
remove extra row between layers
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennesky committed May 29, 2014
1 parent 3e10000 commit c661119
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions src/app/qgsidentifyresultsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -486,15 +486,6 @@ void QgsIdentifyResultsDialog::addFeature( QgsVectorLayer *vlayer, const QgsFeat

// table
int j = tblResults->rowCount();
// insert empty row to separate layers
if ( j > 0 && tblResults->item( j - 1, 0 ) &&
tblResults->item( j - 1, 0 )->data( Qt::UserRole + 1 ).toString() != vlayer->id() )
{
tblResults->setRowCount( j + 1 );
tblResults->setRowHeight( j, 2 );
j++;
}

for ( int i = 0; i < attrs.count(); ++i )
{
if ( i >= fields.count() )
Expand Down Expand Up @@ -542,7 +533,7 @@ void QgsIdentifyResultsDialog::addFeature( QgsVectorLayer *vlayer, const QgsFeat
tblResults->resizeRowToContents( j );
j++;
}
tblResults->resizeColumnToContents( 1 );
//tblResults->resizeColumnToContents( 1 );

highlightFeature( featItem );
}
Expand Down Expand Up @@ -760,14 +751,6 @@ void QgsIdentifyResultsDialog::addFeature( QgsRasterLayer *layer,
// table
int i = 0;
int j = tblResults->rowCount();
// insert empty row to separate layers
if ( j > 0 && tblResults->item( j - 1, 0 ) &&
tblResults->item( j - 1, 0 )->data( Qt::UserRole + 1 ).toString() != layer->id() )
{
j++;
tblResults->setRowCount( j + 1 );
tblResults->setRowHeight( j - 1, 2 );
}
tblResults->setRowCount( j + attributes.count() );

for ( QMap<QString, QString>::const_iterator it = attributes.begin(); it != attributes.end(); ++it )
Expand All @@ -785,7 +768,7 @@ void QgsIdentifyResultsDialog::addFeature( QgsRasterLayer *layer,

j++; i++;
}
tblResults->resizeColumnToContents( 1 );
//tblResults->resizeColumnToContents( 1 );

// graph
if ( attributes.count() > 0 )
Expand Down

0 comments on commit c661119

Please sign in to comment.