mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
fix build without webkit
This commit is contained in:
parent
4f59bca213
commit
55473e7e21
@ -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 * )
|
||||
|
Loading…
x
Reference in New Issue
Block a user