"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/app/qgsidentifyresultsdialog.cpp" between
QGIS-final-3_10_11.tar.gz and QGIS-final-3_10_12.tar.gz

About: QGIS (Quantum GIS) is a Geographic Information System that supports vector, raster, and database formats. Long-term release (3.10.x series).

qgsidentifyresultsdialog.cpp  (QGIS-final-3_10_11):qgsidentifyresultsdialog.cpp  (QGIS-final-3_10_12)
skipping to change at line 1014 skipping to change at line 1014
for ( QMap<QString, QString>::const_iterator it = attributes.begin(); it != at tributes.end(); ++it ) for ( QMap<QString, QString>::const_iterator it = attributes.begin(); it != at tributes.end(); ++it )
{ {
QgsDebugMsg( QStringLiteral( "adding item #%1 / %2 / %3 / %4" ).arg( j ).arg ( layer->name(), it.key(), it.value() ) ); QgsDebugMsg( QStringLiteral( "adding item #%1 / %2 / %3 / %4" ).arg( j ).arg ( layer->name(), it.key(), it.value() ) );
QTableWidgetItem *item = new QTableWidgetItem( layer->name() ); QTableWidgetItem *item = new QTableWidgetItem( layer->name() );
item->setData( Qt::UserRole, QVariant::fromValue( qobject_cast<QObject *>( l ayer ) ) ); item->setData( Qt::UserRole, QVariant::fromValue( qobject_cast<QObject *>( l ayer ) ) );
item->setData( Qt::UserRole + 1, layer->id() ); item->setData( Qt::UserRole + 1, layer->id() );
tblResults->setItem( j, 0, item ); tblResults->setItem( j, 0, item );
tblResults->setItem( j, 1, new QTableWidgetItem( QString::number( i + 1 ) ) ); tblResults->setItem( j, 1, new QTableWidgetItem( QString::number( i + 1 ) ) );
tblResults->setItem( j, 2, new QTableWidgetItem( it.key() ) ); tblResults->setItem( j, 2, new QTableWidgetItem( it.key() ) );
tblResults->setItem( j, 3, new QTableWidgetItem( it.value() ) );
bool foundLinks = false; bool foundLinks = false;
QString links = QgsStringUtils::insertLinks( it.value(), &foundLinks ); QString links = QgsStringUtils::insertLinks( it.value(), &foundLinks );
if ( foundLinks ) if ( foundLinks )
{ {
auto valueLabel { qgis::make_unique<QLabel>( links ) }; auto valueLabel { qgis::make_unique<QLabel>( links ) };
valueLabel->setOpenExternalLinks( true ); valueLabel->setOpenExternalLinks( true );
tblResults->setItem( j, 3, item );
tblResults->setCellWidget( j, 3, valueLabel.release() ); tblResults->setCellWidget( j, 3, valueLabel.release() );
} }
else
{
tblResults->setItem( j, 3, new QTableWidgetItem( it.value() ) );
}
tblResults->resizeRowToContents( j ); tblResults->resizeRowToContents( j );
j++; j++;
i++; i++;
} }
//tblResults->resizeColumnToContents( 1 ); //tblResults->resizeColumnToContents( 1 );
// graph // graph
if ( !attributes.isEmpty() ) if ( !attributes.isEmpty() )
 End of changes. 3 change blocks. 
5 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)