QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
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
34
class
CORE_EXPORT
QWebFrame
:
public
QObject
35
{
37
Q_OBJECT
38
39
public
:
40
QWebFrame
( QObject *parent =
nullptr
)
41
: QObject( parent )
42
{}
43
44
void
setZoomFactor( qreal factor ) { Q_UNUSED( factor ) }
45
46
void
setScrollBarPolicy( Qt::Orientation orientation, Qt::ScrollBarPolicy scrollbarpolicy )
47
{
48
Q_UNUSED( orientation )
49
Q_UNUSED( scrollbarpolicy )
50
}
51
52
void
setHtml(
const
QString &html,
const
QUrl &url = QUrl() )
53
{
54
Q_UNUSED( html )
55
Q_UNUSED( url )
56
emit loadFinished(
true
);
57
}
58
59
QSize contentsSize()
const
{
return
QSize(); }
60
61
void
render( QPainter *,
const
QRegion = QRegion() ) {}
62
63
void
addToJavaScriptWindowObject(
const
QString &, QObject * ) {}
64
65
QVariant evaluateJavaScript(
const
QString & ) {
return
QVariant(); }
66
67
signals:
68
void
loadFinished(
bool
ok );
69
70
void
javaScriptWindowObjectCleared();
72
};
73
#endif
// QGSWEBFRAME_H
QWebFrame
A collection of stubs to mimic the API of a QWebFrame on systems where QtWebkit is not available.
Definition
qgswebframe.h:35
Generated on
for QGIS API Documentation by
1.17.0