Skip to content

Commit 0c97b7c

Browse files
authored
fix build without webkit
1 parent 4f59bca commit 0c97b7c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/gui/qgsmaptip.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,16 @@ void QgsMapTip::showMapTip( QgsMapLayer *pLayer,
155155

156156
void QgsMapTip::resizeContent()
157157
{
158+
#if WITH_QTWEBKIT
158159
// Get the content size
159160
QWebElement container = mWebView->page()->mainFrame()->findFirstElement(
160161
QStringLiteral( "#QgsWebViewContainer" ) );
161162
int width = container.geometry().width() + MARGIN_VALUE * 2;
162163
int height = container.geometry().height() + MARGIN_VALUE * 2;
163164
mWidget->resize( width, height );
165+
#else
166+
mWebView->adjustSize();
167+
#endif
164168
}
165169

166170
void QgsMapTip::clear( QgsMapCanvas * )

0 commit comments

Comments
 (0)