Skip to content

Commit 5910adf

Browse files
committedMay 22, 2015
fix windows build
1 parent f2d4d30 commit 5910adf

File tree

3 files changed

+60
-57
lines changed

3 files changed

+60
-57
lines changed
 

‎src/core/qgswebframe.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424
#include <QPainter>
2525
#include <QUrl>
2626

27-
class QWebFrame : public QObject
27+
class CORE_EXPORT QWebFrame : public QObject
2828
{
29-
Q_OBJECT
29+
Q_OBJECT
3030

3131
public:
3232
QWebFrame( QObject* parent = 0 )
33-
:QObject( parent )
33+
: QObject( parent )
3434
{
3535

3636
}

‎src/core/qgswebpage.h

Lines changed: 48 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -28,47 +28,48 @@
2828
#include <QNetworkAccessManager>
2929
#include <QPalette>
3030

31-
class QWebSettings : public QObject
31+
class CORE_EXPORT QWebSettings : public QObject
3232
{
3333
Q_OBJECT
3434

3535
public:
3636

37-
enum WebAttribute {
38-
AutoLoadImages,
39-
JavascriptEnabled,
40-
JavaEnabled,
41-
PluginsEnabled,
42-
PrivateBrowsingEnabled,
43-
JavascriptCanOpenWindows,
44-
JavascriptCanAccessClipboard,
45-
DeveloperExtrasEnabled,
46-
LinksIncludedInFocusChain,
47-
ZoomTextOnly,
48-
PrintElementBackgrounds,
49-
OfflineStorageDatabaseEnabled,
50-
OfflineWebApplicationCacheEnabled,
51-
LocalStorageEnabled,
52-
LocalContentCanAccessRemoteUrls,
53-
DnsPrefetchEnabled,
54-
XSSAuditingEnabled,
55-
AcceleratedCompositingEnabled,
56-
SpatialNavigationEnabled,
57-
LocalContentCanAccessFileUrls,
58-
TiledBackingStoreEnabled,
59-
FrameFlatteningEnabled,
60-
SiteSpecificQuirksEnabled,
61-
JavascriptCanCloseWindows,
62-
WebGLEnabled,
63-
CSSRegionsEnabled,
64-
HyperlinkAuditingEnabled,
65-
CSSGridLayoutEnabled,
66-
ScrollAnimatorEnabled,
67-
CaretBrowsingEnabled,
68-
NotificationsEnabled
37+
enum WebAttribute
38+
{
39+
AutoLoadImages,
40+
JavascriptEnabled,
41+
JavaEnabled,
42+
PluginsEnabled,
43+
PrivateBrowsingEnabled,
44+
JavascriptCanOpenWindows,
45+
JavascriptCanAccessClipboard,
46+
DeveloperExtrasEnabled,
47+
LinksIncludedInFocusChain,
48+
ZoomTextOnly,
49+
PrintElementBackgrounds,
50+
OfflineStorageDatabaseEnabled,
51+
OfflineWebApplicationCacheEnabled,
52+
LocalStorageEnabled,
53+
LocalContentCanAccessRemoteUrls,
54+
DnsPrefetchEnabled,
55+
XSSAuditingEnabled,
56+
AcceleratedCompositingEnabled,
57+
SpatialNavigationEnabled,
58+
LocalContentCanAccessFileUrls,
59+
TiledBackingStoreEnabled,
60+
FrameFlatteningEnabled,
61+
SiteSpecificQuirksEnabled,
62+
JavascriptCanCloseWindows,
63+
WebGLEnabled,
64+
CSSRegionsEnabled,
65+
HyperlinkAuditingEnabled,
66+
CSSGridLayoutEnabled,
67+
ScrollAnimatorEnabled,
68+
CaretBrowsingEnabled,
69+
NotificationsEnabled
6970
};
7071
explicit QWebSettings( QObject* parent = 0 )
71-
:QObject( parent )
72+
: QObject( parent )
7273
{
7374

7475
}
@@ -90,21 +91,23 @@ class QWebPage : public QObject
9091

9192
public:
9293

93-
enum LinkDelegationPolicy {
94-
DontDelegateLinks,
95-
DelegateExternalLinks,
96-
DelegateAllLinks
94+
enum LinkDelegationPolicy
95+
{
96+
DontDelegateLinks,
97+
DelegateExternalLinks,
98+
DelegateAllLinks
9799
};
98100

99-
enum WebWindowType {
100-
WebBrowserWindow,
101-
WebModalDialog
101+
enum WebWindowType
102+
{
103+
WebBrowserWindow,
104+
WebModalDialog
102105
};
103106

104107
explicit QWebPage( QObject* parent = 0 )
105-
: QObject( parent )
106-
, mSettings( new QWebSettings() )
107-
, mFrame( new QWebFrame() )
108+
: QObject( parent )
109+
, mSettings( new QWebSettings() )
110+
, mFrame( new QWebFrame() )
108111
{
109112
}
110113

@@ -124,7 +127,7 @@ class QWebPage : public QObject
124127
Q_UNUSED( palette );
125128
}
126129

127-
void setViewportSize(const QSize & size) const
130+
void setViewportSize( const QSize & size ) const
128131
{
129132
Q_UNUSED( size );
130133
}

‎src/core/qgswebview.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,26 @@
2222
#ifdef WITH_QTWEBKIT
2323
#include <QtWebKit/QWebView>
2424

25-
class QgsWebView : public QWebView
25+
class CORE_EXPORT QgsWebView : public QWebView
2626
{
2727
Q_OBJECT
2828

2929
public:
30-
explicit QgsWebView(QWidget* parent = 0)
31-
: QWebView( parent )
30+
explicit QgsWebView( QWidget* parent = 0 )
31+
: QWebView( parent )
3232
{}
3333
};
3434
#else
3535
#include "qgswebpage.h"
3636

37-
class QgsWebView : public QWidget
37+
class CORE_EXPORT QgsWebView : public QWidget
3838
{
3939
Q_OBJECT
4040
public:
41-
explicit QgsWebView(QWidget *parent = 0)
42-
: QWidget(parent )
43-
, mSettings( new QWebSettings() )
44-
, mPage( new QWebPage() )
41+
explicit QgsWebView( QWidget *parent = 0 )
42+
: QWidget( parent )
43+
, mSettings( new QWebSettings() )
44+
, mPage( new QWebPage() )
4545
{
4646
}
4747

@@ -77,7 +77,7 @@ class QgsWebView : public QWidget
7777
Q_UNUSED( html );
7878
}
7979

80-
virtual QgsWebView* createWindow(QWebPage::WebWindowType)
80+
virtual QgsWebView* createWindow( QWebPage::WebWindowType )
8181
{
8282
return new QgsWebView();
8383
}

0 commit comments

Comments
 (0)
Please sign in to comment.