QGIS API Documentation  3.4.15-Madeira (e83d02e274)
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 #ifdef WITH_QTWEBKIT
24 #include <QWebFrame>
25 #else
26 
27 #include <QObject>
28 #include <QPainter>
29 #include <QUrl>
30 #include <QVariant>
31 
37 class CORE_EXPORT QWebFrame : public QObject
38 {
40  Q_OBJECT
41 
42  public:
43  QWebFrame( QObject *parent = nullptr )
44  : QObject( parent )
45  {
46 
47  }
48 
49  void setZoomFactor( qreal factor )
50  {
51  Q_UNUSED( factor );
52  }
53 
54  void setScrollBarPolicy( Qt::Orientation orientation, Qt::ScrollBarPolicy scrollbarpolicy )
55  {
56  Q_UNUSED( orientation );
57  Q_UNUSED( scrollbarpolicy );
58  }
59 
60  void setHtml( const QString &html, const QUrl &url = QUrl() )
61  {
62  Q_UNUSED( html );
63  Q_UNUSED( url );
64  }
65 
66  QSize contentsSize() const
67  {
68  return QSize();
69  }
70 
71  void render( QPainter *, const QRegion = QRegion() )
72  {
73 
74  }
75 
76  void addToJavaScriptWindowObject( const QString &, QObject * )
77  {
78 
79  }
80 
81  QVariant evaluateJavaScript( const QString & )
82  {
83  return QVariant();
84  }
85 
86  signals:
87  void javaScriptWindowObjectCleared();
89 };
90 #endif
91 #endif // QGSWEBFRAME_H
The QWebFrame class is a collection of stubs to mimic the API of a QWebFrame on systems where QtWebki...
Definition: qgswebframe.h:37