Skip to content

Commit e5e78af

Browse files
committedMay 14, 2016
Fixes in qgswebframe.h and qgswebpage.h to fix building without QtWebKit
1 parent ae7666f commit e5e78af

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
 

‎src/core/qgswebframe.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <QObject>
2424
#include <QPainter>
2525
#include <QUrl>
26+
#include <QVariant>
2627

2728
/**
2829
* @brief The QWebFrame class is a collection of stubs to mimic the API of a QWebFrame on systems
@@ -72,6 +73,11 @@ class CORE_EXPORT QWebFrame : public QObject
7273

7374
}
7475

76+
QVariant evaluateJavaScript( const QString & )
77+
{
78+
return QVariant();
79+
}
80+
7581
signals:
7682
void javaScriptWindowObjectCleared();
7783
/// @endcond

‎src/core/qgswebpage.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class CORE_EXPORT QWebPage : public QObject
181181

182182
protected:
183183

184-
virtual void javaScriptConsoleMessage( const QString , int, const QString& ) {};
184+
virtual void javaScriptConsoleMessage( const QString& , int, const QString& ) {}
185185

186186
private:
187187
QWebSettings* mSettings;

0 commit comments

Comments
 (0)
Please sign in to comment.