QGIS API Documentation  2.14.0-Essen
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 
31 class CORE_EXPORT QWebFrame : public QObject
32 {
34  Q_OBJECT
35 
36  public:
37  QWebFrame( QObject* parent = 0 )
38  : QObject( parent )
39  {
40 
41  }
42 
43  void setZoomFactor( qreal factor )
44  {
45  Q_UNUSED( factor );
46  }
47 
48  void setScrollBarPolicy( Qt::Orientation orientation, Qt::ScrollBarPolicy scrollbarpolicy )
49  {
50  Q_UNUSED( orientation );
51  Q_UNUSED( scrollbarpolicy );
52  }
53 
54  void setHtml( const QString& html, const QUrl& url = QUrl() )
55  {
56  Q_UNUSED( html );
57  Q_UNUSED( url );
58  }
59 
60  QSize contentsSize() const
61  {
62  return QSize();
63  }
64 
65  void render( QPainter*, const QRegion = QRegion() )
66  {
67 
68  }
69 
70  void addToJavaScriptWindowObject( const QString&, QObject* )
71  {
72 
73  }
74 
75  signals:
76  void javaScriptWindowObjectCleared();
78 };
79 #endif
80 #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:31