Skip to content

Commit c661119

Browse files
committed
remove extra row between layers
1 parent 3e10000 commit c661119

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

src/app/qgsidentifyresultsdialog.cpp

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -486,15 +486,6 @@ void QgsIdentifyResultsDialog::addFeature( QgsVectorLayer *vlayer, const QgsFeat
486486

487487
// table
488488
int j = tblResults->rowCount();
489-
// insert empty row to separate layers
490-
if ( j > 0 && tblResults->item( j - 1, 0 ) &&
491-
tblResults->item( j - 1, 0 )->data( Qt::UserRole + 1 ).toString() != vlayer->id() )
492-
{
493-
tblResults->setRowCount( j + 1 );
494-
tblResults->setRowHeight( j, 2 );
495-
j++;
496-
}
497-
498489
for ( int i = 0; i < attrs.count(); ++i )
499490
{
500491
if ( i >= fields.count() )
@@ -542,7 +533,7 @@ void QgsIdentifyResultsDialog::addFeature( QgsVectorLayer *vlayer, const QgsFeat
542533
tblResults->resizeRowToContents( j );
543534
j++;
544535
}
545-
tblResults->resizeColumnToContents( 1 );
536+
//tblResults->resizeColumnToContents( 1 );
546537

547538
highlightFeature( featItem );
548539
}
@@ -760,14 +751,6 @@ void QgsIdentifyResultsDialog::addFeature( QgsRasterLayer *layer,
760751
// table
761752
int i = 0;
762753
int j = tblResults->rowCount();
763-
// insert empty row to separate layers
764-
if ( j > 0 && tblResults->item( j - 1, 0 ) &&
765-
tblResults->item( j - 1, 0 )->data( Qt::UserRole + 1 ).toString() != layer->id() )
766-
{
767-
j++;
768-
tblResults->setRowCount( j + 1 );
769-
tblResults->setRowHeight( j - 1, 2 );
770-
}
771754
tblResults->setRowCount( j + attributes.count() );
772755

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

786769
j++; i++;
787770
}
788-
tblResults->resizeColumnToContents( 1 );
771+
//tblResults->resizeColumnToContents( 1 );
789772

790773
// graph
791774
if ( attributes.count() > 0 )

0 commit comments

Comments
 (0)