blob: 9e56bf5ae959d50f28747244a12398e524a79294 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
From 55473e7e21a068dec904fd4146642c33a44ce22a Mon Sep 17 00:00:00 2001
From: Denis Rouzaud <denis.rouzaud@gmail.com>
Date: Wed, 8 Aug 2018 13:40:04 +0200
Subject: [PATCH] fix build without webkit
---
src/gui/qgsmaptip.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/gui/qgsmaptip.cpp b/src/gui/qgsmaptip.cpp
index d9fe4a32607..7af6f97672c 100644
--- a/src/gui/qgsmaptip.cpp
+++ b/src/gui/qgsmaptip.cpp
@@ -155,12 +155,16 @@ void QgsMapTip::showMapTip( QgsMapLayer *pLayer,
void QgsMapTip::resizeContent()
{
+#if WITH_QTWEBKIT
// Get the content size
QWebElement container = mWebView->page()->mainFrame()->findFirstElement(
QStringLiteral( "#QgsWebViewContainer" ) );
int width = container.geometry().width() + MARGIN_VALUE * 2;
int height = container.geometry().height() + MARGIN_VALUE * 2;
mWidget->resize( width, height );
+#else
+ mWebView->adjustSize();
+#endif
}
void QgsMapTip::clear( QgsMapCanvas * )
|