Plasma
Go to the documentation of this file.
20 #ifndef PLASMA_WEBVIEW_H
21 #define PLASMA_WEBVIEW_H
24 #include <QtGui/QGraphicsWidget>
50 Q_PROPERTY(KUrl url READ url WRITE setUrl)
51 Q_PROPERTY(
QString html READ html WRITE setHtml)
52 Q_PROPERTY(
bool dragToScroll READ dragToScroll WRITE setDragToScroll)
53 Q_PROPERTY(
QPointF scrollPosition READ scrollPosition WRITE setScrollPosition)
54 Q_PROPERTY(
QSizeF contentsSize READ contentsSize)
55 Q_PROPERTY(
QRectF viewportGeometry READ viewportGeometry)
56 Q_PROPERTY(qreal zoomFactor READ zoomFactor WRITE setZoomFactor)
67 void setUrl(const KUrl &url);
81 void setHtml(const
QByteArray &html, const KUrl &baseUrl = KUrl());
95 void setHtml(const
QString &html, const KUrl &baseUrl = KUrl());
106 QSizeF contentsSize() const;
112 void setScrollPosition(const
QPointF &position);
118 QPointF scrollPosition() const;
124 QRectF viewportGeometry() const;
131 qreal zoomFactor() const;
138 void setZoomFactor(const qreal zoom);
164 void setDragToScroll(
bool drag);
175 void setGeometry(const
QRectF &geometry);
209 void loadProgress(
int percent);
217 void loadFinished(
bool success);
223 void urlChanged(const
QUrl &url);
246 QSizeF sizeHint(Qt::SizeHint which, const
QSizeF &constraint) const;
249 Q_PRIVATE_SLOT(d,
void loadingFinished(
bool success))
251 WebViewPrivate * const d;
252 friend class WebViewPrivate;
257 #endif // Multiple incluson guard
Provides a widget to display html content in Plasma.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:12 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.