Skip to content

Commit

Permalink
Fixes in qgswebframe.h and qgswebpage.h to fix building without QtWebKit
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed May 14, 2016
1 parent ae7666f commit e5e78af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/core/qgswebframe.h
Expand Up @@ -23,6 +23,7 @@
#include <QObject>
#include <QPainter>
#include <QUrl>
#include <QVariant>

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

}

QVariant evaluateJavaScript( const QString & )
{
return QVariant();
}

signals:
void javaScriptWindowObjectCleared();
/// @endcond
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgswebpage.h
Expand Up @@ -181,7 +181,7 @@ class CORE_EXPORT QWebPage : public QObject

protected:

virtual void javaScriptConsoleMessage( const QString , int, const QString& ) {};
virtual void javaScriptConsoleMessage( const QString& , int, const QString& ) {}

private:
QWebSettings* mSettings;
Expand Down

0 comments on commit e5e78af

Please sign in to comment.