QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
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 #ifdef WITH_QTWEBKIT
20 #include <QWebFrame>
21 #else
22 
23 #include <QObject>
24 #include <QPainter>
25 #include <QUrl>
26 #include <QVariant>
27 
32 class CORE_EXPORT QWebFrame : public QObject
33 {
35  Q_OBJECT
36 
37  public:
38  QWebFrame( QObject* parent = 0 )
39  : QObject( parent )
40  {
41 
42  }
43 
44  void setZoomFactor( qreal factor )
45  {
46  Q_UNUSED( factor );
47  }
48 
49  void setScrollBarPolicy( Qt::Orientation orientation, Qt::ScrollBarPolicy scrollbarpolicy )
50  {
51  Q_UNUSED( orientation );
52  Q_UNUSED( scrollbarpolicy );
53  }
54 
55  void setHtml( const QString& html, const QUrl& url = QUrl() )
56  {
57  Q_UNUSED( html );
58  Q_UNUSED( url );
59  }
60 
61  QSize contentsSize() const
62  {
63  return QSize();
64  }
65 
66  void render( QPainter*, const QRegion = QRegion() )
67  {
68 
69  }
70 
71  void addToJavaScriptWindowObject( const QString&, QObject* )
72  {
73 
74  }
75 
76  QVariant evaluateJavaScript( const QString & )
77  {
78  return QVariant();
79  }
80 
81  signals:
82  void javaScriptWindowObjectCleared();
84 };
85 #endif
86 #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:32