QGIS API Documentation 3.99.0-Master (d270888f95f)
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#define SIP_NO_FILE
20
21#include "qgis_core.h"
22
23#include <QObject>
24#include <QPainter>
25#include <QUrl>
26#include <QVariant>
27
33class CORE_EXPORT QWebFrame : public QObject
34{
36 Q_OBJECT
37
38 public:
39 QWebFrame( QObject *parent = nullptr )
40 : QObject( parent )
41 {
42
43 }
44
45 void setZoomFactor( qreal factor )
46 {
47 Q_UNUSED( factor )
48 }
49
50 void setScrollBarPolicy( Qt::Orientation orientation, Qt::ScrollBarPolicy scrollbarpolicy )
51 {
52 Q_UNUSED( orientation )
53 Q_UNUSED( scrollbarpolicy )
54 }
55
56 void setHtml( const QString &html, const QUrl &url = QUrl() )
57 {
58 Q_UNUSED( html )
59 Q_UNUSED( url )
60 emit loadFinished( true );
61 }
62
63 QSize contentsSize() const
64 {
65 return QSize();
66 }
67
68 void render( QPainter *, const QRegion = QRegion() )
69 {
70
71 }
72
73 void addToJavaScriptWindowObject( const QString &, QObject * )
74 {
75
76 }
77
78 QVariant evaluateJavaScript( const QString & )
79 {
80 return QVariant();
81 }
82
83 signals:
84 void loadFinished( bool ok );
85
86 void javaScriptWindowObjectCleared();
88};
89#endif // QGSWEBFRAME_H
A collection of stubs to mimic the API of a QWebFrame on systems where QtWebkit is not available.
Definition qgswebframe.h:34