Skip to content
Permalink
Browse files
add URL to provider info
  • Loading branch information
NEDJIMAbelgacem authored and nyalldawson committed Apr 27, 2021
1 parent 18f57b4 commit 6f94fce4bb93f86a43e96a9b42f947d7b6e490f2
Showing with 2 additions and 5 deletions.
  1. +2 −5 src/core/pointcloud/qgspointcloudlayer.cpp
@@ -440,11 +440,8 @@ QString QgsPointCloudLayer::htmlMetadata() const
path = uriComponents[QStringLiteral( "path" )].toString();
if ( QFile::exists( path ) )
myMetadata += QStringLiteral( "<tr><td class=\"highlight\">" ) + tr( "Path" ) + QStringLiteral( "</td><td>%1" ).arg( QStringLiteral( "<a href=\"%1\">%2</a>" ).arg( QUrl::fromLocalFile( path ).toString(), QDir::toNativeSeparators( path ) ) ) + QStringLiteral( "</td></tr>\n" );
}
if ( uriComponents.contains( QStringLiteral( "url" ) ) )
{
const QString url = uriComponents[QStringLiteral( "url" )].toString();
myMetadata += QStringLiteral( "<tr><td class=\"highlight\">" ) + tr( "URL" ) + QStringLiteral( "</td><td>%1" ).arg( QStringLiteral( "<a href=\"%1\">%2</a>" ).arg( QUrl( url ).toString(), url ) ) + QStringLiteral( "</td></tr>\n" );
else
myMetadata += QStringLiteral( "<tr><td class=\"highlight\">" ) + tr( "URL" ) + QStringLiteral( "</td><td>%1" ).arg( QStringLiteral( "<a href=\"%1\">%2</a>" ).arg( QUrl( path ).toString(), path ) ) + QStringLiteral( "</td></tr>\n" );
}

// data source

0 comments on commit 6f94fce

Please sign in to comment.