mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Fix WITH_QTWEBKIT=OFF support
This commit is contained in:
parent
514b03c9ee
commit
ebf41f038b
@ -26,7 +26,9 @@
|
||||
#include <QToolTip>
|
||||
#include <QSettings>
|
||||
#include <QLabel>
|
||||
#if WITH_QTWEBKIT
|
||||
#include <QWebElement>
|
||||
#endif
|
||||
#include <QHBoxLayout>
|
||||
|
||||
|
||||
@ -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(
|
||||
@ -143,6 +146,7 @@ void QgsMapTip::showMapTip( QgsMapLayer *pLayer,
|
||||
|
||||
mWidget->resize( width, height );
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void QgsMapTip::clear( QgsMapCanvas * )
|
||||
|
Loading…
x
Reference in New Issue
Block a user