QGIS API Documentation 3.99.0-Master (a8f284845db)
Loading...
Searching...
No Matches
qgswebframe.h
Go to the documentation of this file.
1/***************************************************************************
2
3 ----------------------------------------------------
4 date : 19.5.2015
5 copyright : (C) 2015 by Matthias Kuhn
6 email : matthias (at) opengis.ch
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef QGSWEBFRAME_H
17#define QGSWEBFRAME_H
18
19
20#include "qgis_core.h"
21
22#include <QObject>
23#include <QPainter>
24#include <QUrl>
25#include <QVariant>
26
27#define SIP_NO_FILE
28
34class CORE_EXPORT QWebFrame : public QObject
35{
37 Q_OBJECT
38
39 public:
40 QWebFrame( QObject *parent = nullptr )
41 : QObject( parent )
42 {
43
44 }
45
46 void setZoomFactor( qreal factor )
47 {
48 Q_UNUSED( factor )
49 }
50
51 void setScrollBarPolicy( Qt::Orientation orientation, Qt::ScrollBarPolicy scrollbarpolicy )
52 {
53 Q_UNUSED( orientation )
54 Q_UNUSED( scrollbarpolicy )
55 }
56
57 void setHtml( const QString &html, const QUrl &url = QUrl() )
58 {
59 Q_UNUSED( html )
60 Q_UNUSED( url )
61 emit loadFinished( true );
62 }
63
64 QSize contentsSize() const
65 {
66 return QSize();
67 }
68
69 void render( QPainter *, const QRegion = QRegion() )
70 {
71
72 }
73
74 void addToJavaScriptWindowObject( const QString &, QObject * )
75 {
76
77 }
78
79 QVariant evaluateJavaScript( const QString & )
80 {
81 return QVariant();
82 }
83
84 signals:
85 void loadFinished( bool ok );
86
87 void javaScriptWindowObjectCleared();
89};
90#endif // QGSWEBFRAME_H
A collection of stubs to mimic the API of a QWebFrame on systems where QtWebkit is not available.
Definition qgswebframe.h:35