Skip to content

Commit

Permalink
Remove leftover
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Oct 17, 2019
1 parent 2f51766 commit 07ae8b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsrasterlayerproperties.cpp
Expand Up @@ -447,7 +447,6 @@ QgsRasterLayerProperties::QgsRasterLayerProperties( QgsMapLayer *lyr, QgsMapCanv
}
mMetadataViewer->page()->setLinkDelegationPolicy( QWebPage::LinkDelegationPolicy::DelegateAllLinks );
connect( mMetadataViewer->page(), &QWebPage::linkClicked, this, &QgsRasterLayerProperties::urlClicked );
mMetadataViewer->page()->setViewportSize( QSize( 200, 200 ) );
mMetadataViewer->page()->settings()->setAttribute( QWebSettings::DeveloperExtrasEnabled, true );
mMetadataViewer->page()->settings()->setAttribute( QWebSettings::JavascriptEnabled, true );

Expand Down Expand Up @@ -2067,6 +2066,7 @@ void QgsRasterLayerProperties::updateInformationContent()
".tabular-view th, .tabular-view td { "
" border: solid 1px #eee;"
"} \n " ) );
// Inject the stylesheet
const QString html { mRasterLayer->htmlMetadata().replace( QStringLiteral( "<head>" ), QStringLiteral( R"raw(<head><style type="text/css">%1</style>)raw" ) ).arg( myStyle ) };
mMetadataViewer->setHtml( html );
mMetadataFilled = true;
Expand Down

0 comments on commit 07ae8b9

Please sign in to comment.