Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix WITH_QTWEBKIT=OFF support
  • Loading branch information
m-kuhn committed Jun 3, 2016
1 parent 514b03c commit ebf41f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/qgsmaptip.cpp
Expand Up @@ -26,7 +26,9 @@
#include <QToolTip>
#include <QSettings>
#include <QLabel>
#if WITH_QTWEBKIT
#include <QWebElement>
#endif
#include <QHBoxLayout>


Expand Down Expand Up @@ -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(
Expand All @@ -143,6 +146,7 @@ void QgsMapTip::showMapTip( QgsMapLayer *pLayer,

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

void QgsMapTip::clear( QgsMapCanvas * )
Expand Down

0 comments on commit ebf41f0

Please sign in to comment.