29 #include <QNetworkAccessManager> 31 #include <QTextBrowser> 51 PrivateBrowsingEnabled,
52 JavascriptCanOpenWindows,
53 JavascriptCanAccessClipboard,
54 DeveloperExtrasEnabled,
55 LinksIncludedInFocusChain,
57 PrintElementBackgrounds,
58 OfflineStorageDatabaseEnabled,
59 OfflineWebApplicationCacheEnabled,
61 LocalContentCanAccessRemoteUrls,
64 AcceleratedCompositingEnabled,
65 SpatialNavigationEnabled,
66 LocalContentCanAccessFileUrls,
67 TiledBackingStoreEnabled,
68 FrameFlatteningEnabled,
69 SiteSpecificQuirksEnabled,
70 JavascriptCanCloseWindows,
73 HyperlinkAuditingEnabled,
75 ScrollAnimatorEnabled,
84 void setUserStyleSheetUrl(
const QUrl& )
88 void setAttribute( WebAttribute,
bool )
106 enum LinkDelegationPolicy
109 DelegateExternalLinks,
137 void setPalette(
const QPalette& palette )
142 void setViewportSize(
const QSize & size )
const 147 void setLinkDelegationPolicy( LinkDelegationPolicy linkDelegationPolicy )
161 Q_UNUSED( networkAccessManager );
174 QSize viewportSize()
const 179 QMenu* createStandardContextMenu()
184 void setForwardUnsupportedContent(
bool )
190 void loadFinished(
bool ok );
196 virtual void javaScriptConsoleMessage(
const QString& ,
int,
const QString& ) {}
242 if ( mIdentifier.isEmpty() )
254 #endif // QGSWEBPAGE_H The QWebFrame class is a collection of stubs to mimic the API of a QWebFrame on systems where QtWebki...
QString identifier() const
Returns the QgsWebPage's identifier.
void setIdentifier(const QString &identifier)
Sets an identifier for the QgsWebPage.
QString tr(const char *sourceText, const char *disambiguation, int n)
QgsWebPage(QObject *parent=0)
Constructor for QgsWebPage.
virtual void javaScriptConsoleMessage(const QString &message, int lineNumber, const QString &) override
static void logMessage(const QString &message, const QString &tag=QString::null, MessageLevel level=WARNING)
add a message to the instance (and create it if necessary)
The QWebPage class is a collection of stubs to mimic the API of a QWebPage on systems where QtWebkit ...
void setOpenExternalLinks(bool open)
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
QWebPage subclass which redirects JavaScript errors and console output to the QGIS message log...
The QWebSettings class is a collection of stubs to mimic the API of a QWebSettings on systems where Q...