fix build without webkit

This commit is contained in:
Denis Rouzaud 2018-08-08 13:40:04 +02:00
parent 4f59bca213
commit 55473e7e21

View File

@ -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 * )