Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge pull request #9932 from rouault/fix_build_without_qtwebkit
Fix build without WITH_QTWEBKIT
- Loading branch information
Showing
with
3 additions
and
0 deletions.
-
+3
−0
src/app/qgsidentifyresultsdialog.cpp
|
@@ -58,6 +58,7 @@ |
|
|
#include <QPixmap> |
|
|
#include <QMenu> |
|
|
#include <QClipboard> |
|
|
#include <QDesktopWidget> |
|
|
#include <QMenuBar> |
|
|
#include <QPushButton> |
|
|
#include <QPrinter> |
|
@@ -930,6 +931,7 @@ void QgsIdentifyResultsDialog::addFeature( QgsRasterLayer *layer, |
|
|
if ( currentFormat == QgsRaster::IdentifyFormatHtml || currentFormat == QgsRaster::IdentifyFormatText ) |
|
|
{ |
|
|
QgsIdentifyResultsWebViewItem *attrItem = new QgsIdentifyResultsWebViewItem( lstResults ); |
|
|
#ifdef WITH_QTWEBKIT |
|
|
attrItem->webView()->page()->setLinkDelegationPolicy( QWebPage::DelegateExternalLinks ); |
|
|
const int horizontalDpi = qApp->desktop()->screen()->logicalDpiX(); |
|
|
// Adjust zoom: text is ok, but HTML seems rather big at least on Linux/KDE |
|
@@ -941,6 +943,7 @@ void QgsIdentifyResultsDialog::addFeature( QgsRasterLayer *layer, |
|
|
{ |
|
|
QDesktopServices::openUrl( url ); |
|
|
} ); |
|
|
#endif |
|
|
featItem->addChild( attrItem ); // before setHtml()! |
|
|
if ( !attributes.isEmpty() ) |
|
|
{ |
|
|