Skip to content
Permalink
Browse files

Fix WITH_QTWEBKIT=OFF support

  • Loading branch information
m-kuhn committed Jun 3, 2016
1 parent 514b03c commit ebf41f038b0af7ee01eb92dec7670676f09a1d19
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/gui/qgsmaptip.cpp
@@ -26,7 +26,9 @@
#include <QToolTip>
#include <QSettings>
#include <QLabel>
#if WITH_QTWEBKIT
#include <QWebElement>
#endif
#include <QHBoxLayout>


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

mWidget->show();

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

mWidget->resize( width, height );
}
#endif
}

void QgsMapTip::clear( QgsMapCanvas * )

0 comments on commit ebf41f0

Please sign in to comment.
You can’t perform that action at this time.