@@ -486,15 +486,6 @@ void QgsIdentifyResultsDialog::addFeature( QgsVectorLayer *vlayer, const QgsFeat
486
486
487
487
// table
488
488
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
-
498
489
for ( int i = 0 ; i < attrs.count (); ++i )
499
490
{
500
491
if ( i >= fields.count () )
@@ -542,7 +533,7 @@ void QgsIdentifyResultsDialog::addFeature( QgsVectorLayer *vlayer, const QgsFeat
542
533
tblResults->resizeRowToContents ( j );
543
534
j++;
544
535
}
545
- tblResults->resizeColumnToContents ( 1 );
536
+ // tblResults->resizeColumnToContents( 1 );
546
537
547
538
highlightFeature ( featItem );
548
539
}
@@ -760,14 +751,6 @@ void QgsIdentifyResultsDialog::addFeature( QgsRasterLayer *layer,
760
751
// table
761
752
int i = 0 ;
762
753
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
- }
771
754
tblResults->setRowCount ( j + attributes.count () );
772
755
773
756
for ( QMap<QString, QString>::const_iterator it = attributes.begin (); it != attributes.end (); ++it )
@@ -785,7 +768,7 @@ void QgsIdentifyResultsDialog::addFeature( QgsRasterLayer *layer,
785
768
786
769
j++; i++;
787
770
}
788
- tblResults->resizeColumnToContents ( 1 );
771
+ // tblResults->resizeColumnToContents( 1 );
789
772
790
773
// graph
791
774
if ( attributes.count () > 0 )
0 commit comments