Skip to content

Commit

Permalink
Temporarily revert "add sip bindings to webkit stubs"
Browse files Browse the repository at this point in the history
This reverts commit dd69a59.

The commit was causing build failures on Travis
  • Loading branch information
nyalldawson committed May 27, 2016
1 parent cc7eb27 commit 4da6588
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 198 deletions.
4 changes: 0 additions & 4 deletions python/CMakeLists.txt
Expand Up @@ -134,10 +134,6 @@ ELSE(CMAKE_SYSTEM_PROCESSOR MATCHES "^arm")
SET(SIP_DISABLE_FEATURES ${SIP_DISABLE_FEATURES} ARM)
ENDIF(CMAKE_SYSTEM_PROCESSOR MATCHES "^arm")

IF(NOT WITH_QTWEBKIT)
SET(SIP_DISABLE_FEATURES ${SIP_DISABLE_FEATURES} WebKit)
ENDIF(NOT WITH_QTWEBKIT)

IF(NOT WITH_TOUCH)
SET(SIP_DISABLE_FEATURES ${SIP_DISABLE_FEATURES} HAVE_TOUCH)
ENDIF(NOT WITH_TOUCH)
Expand Down
4 changes: 0 additions & 4 deletions python/core/core.sip
Expand Up @@ -3,7 +3,6 @@
keyword_arguments="Optional")

%Feature QT5_SUPPORT
%Feature WebKit

%Import QtXml/QtXmlmod.sip
%Import QtNetwork/QtNetworkmod.sip
Expand Down Expand Up @@ -161,9 +160,6 @@
%Include qgsvisibilitypresetcollection.sip
%Include qgsxmlutils.sip

%Include qgswebview.sip
%Include qgswebpage.sip

%Include auth/qgsauthcertutils.sip
%Include auth/qgsauthconfig.sip
// %Include auth/qgsauthcrypto.sip
Expand Down
140 changes: 0 additions & 140 deletions python/core/qgswebpage.sip

This file was deleted.

46 changes: 0 additions & 46 deletions python/core/qgswebview.sip

This file was deleted.

12 changes: 9 additions & 3 deletions src/core/qgswebpage.h
Expand Up @@ -75,7 +75,7 @@ class CORE_EXPORT QWebSettings : public QObject
CaretBrowsingEnabled,
NotificationsEnabled
};
explicit QWebSettings( QObject* parent = nullptr )
explicit QWebSettings( QObject* parent = 0 )
: QObject( parent )
{

Expand Down Expand Up @@ -117,7 +117,7 @@ class CORE_EXPORT QWebPage : public QObject
WebModalDialog
};

explicit QWebPage( QObject* parent = nullptr )
explicit QWebPage( QObject* parent = 0 )
: QObject( parent )
, mSettings( new QWebSettings() )
, mFrame( new QWebFrame() )
Expand Down Expand Up @@ -175,7 +175,12 @@ class CORE_EXPORT QWebPage : public QObject
return new QMenu();
}

signals:

public slots:

protected:

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

private:
Expand All @@ -200,7 +205,7 @@ class CORE_EXPORT QgsWebPage : public QWebPage
/** Constructor for QgsWebPage.
* @param parent parent object
*/
explicit QgsWebPage( QObject* parent = nullptr )
explicit QgsWebPage( QObject* parent = 0 )
: QWebPage( parent )
{}

Expand All @@ -219,6 +224,7 @@ class CORE_EXPORT QgsWebPage : public QWebPage
QString identifier() const { return mIdentifier; }

protected:

virtual void javaScriptConsoleMessage( const QString& message, int lineNumber, const QString& ) override
{
if ( mIdentifier.isEmpty() )
Expand Down
6 changes: 5 additions & 1 deletion src/core/qgswebview.h
Expand Up @@ -57,7 +57,7 @@ class CORE_EXPORT QgsWebView : public QWidget
/// @cond NOT_STABLE_API
Q_OBJECT
public:
explicit QgsWebView( QWidget *parent = nullptr )
explicit QgsWebView( QWidget *parent = 0 )
: QWidget( parent )
, mSettings( new QWebSettings() )
, mPage( new QWebPage() )
Expand Down Expand Up @@ -111,6 +111,10 @@ class CORE_EXPORT QgsWebView : public QWidget

}

signals:

public slots:

private:
QWebSettings* mSettings;
QWebPage* mPage;
Expand Down

0 comments on commit 4da6588

Please sign in to comment.