Skip to content

Commit ebf41f0

Browse files
committedJun 3, 2016
Fix WITH_QTWEBKIT=OFF support
1 parent 514b03c commit ebf41f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/gui/qgsmaptip.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
#include <QToolTip>
2727
#include <QSettings>
2828
#include <QLabel>
29+
#if WITH_QTWEBKIT
2930
#include <QWebElement>
31+
#endif
3032
#include <QHBoxLayout>
3133

3234

@@ -128,6 +130,7 @@ void QgsMapTip::showMapTip( QgsMapLayer *pLayer,
128130

129131
mWidget->show();
130132

133+
#if WITH_QTWEBKIT
131134
int scrollbarWidth = mWebView->page()->mainFrame()->scrollBarGeometry(
132135
Qt::Vertical ).width();
133136
int scrollbarHeight = mWebView->page()->mainFrame()->scrollBarGeometry(
@@ -143,6 +146,7 @@ void QgsMapTip::showMapTip( QgsMapLayer *pLayer,
143146

144147
mWidget->resize( width, height );
145148
}
149+
#endif
146150
}
147151

148152
void QgsMapTip::clear( QgsMapCanvas * )

0 commit comments

Comments
 (0)
Please sign in to comment.