Skip to content
Permalink
Browse files

fix build without webkit

  • Loading branch information
3nids committed Aug 8, 2018
1 parent 4f59bca commit 55473e7e21a068dec904fd4146642c33a44ce22a
Showing with 4 additions and 0 deletions.
  1. +4 −0 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 * )

0 comments on commit 55473e7

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