libplasma
Plasma::WebContent Class Reference
#include <webcontent.h>

Detailed Description
Definition at line 39 of file webcontent.h.
Constructor & Destructor Documentation
Plasma::WebContent::WebContent | ( | QGraphicsItem * | parent = 0 |
) | [explicit] |
Definition at line 52 of file webcontent.cpp.
Plasma::WebContent::~WebContent | ( | ) |
Definition at line 61 of file webcontent.cpp.
Member Function Documentation
void Plasma::WebContent::contextMenuEvent | ( | QGraphicsSceneContextMenuEvent * | event | ) | [protected] |
Definition at line 197 of file webcontent.cpp.
void Plasma::WebContent::dragEnterEvent | ( | QGraphicsSceneDragDropEvent * | event | ) | [protected] |
Definition at line 277 of file webcontent.cpp.
void Plasma::WebContent::dragLeaveEvent | ( | QGraphicsSceneDragDropEvent * | event | ) | [protected] |
Definition at line 293 of file webcontent.cpp.
void Plasma::WebContent::dragMoveEvent | ( | QGraphicsSceneDragDropEvent * | event | ) | [protected] |
Definition at line 308 of file webcontent.cpp.
void Plasma::WebContent::dropEvent | ( | QGraphicsSceneDragDropEvent * | event | ) | [protected] |
Definition at line 326 of file webcontent.cpp.
void Plasma::WebContent::focusInEvent | ( | QFocusEvent * | event | ) | [protected] |
Definition at line 259 of file webcontent.cpp.
void Plasma::WebContent::focusOutEvent | ( | QFocusEvent * | event | ) | [protected] |
Definition at line 268 of file webcontent.cpp.
QRectF Plasma::WebContent::geometry | ( | ) | const |
void Plasma::WebContent::keyPressEvent | ( | QKeyEvent * | event | ) | [protected] |
Definition at line 231 of file webcontent.cpp.
void Plasma::WebContent::keyReleaseEvent | ( | QKeyEvent * | event | ) | [protected] |
Definition at line 245 of file webcontent.cpp.
void Plasma::WebContent::loadFinished | ( | bool | success | ) | [signal] |
This signal is emitted when loading is completed.
- Parameters:
-
success true if the content was loaded successfully, otherwise false
void Plasma::WebContent::loadProgress | ( | int | percent | ) | [signal] |
During loading progress, this signal is emitted.
The values are always between 0 and 100, inclusive.
- Parameters:
-
percent the estimated amount the loading is complete
QWebFrame * Plasma::WebContent::mainFrame | ( | ) | const |
void Plasma::WebContent::mouseDoubleClickEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [protected] |
Definition at line 167 of file webcontent.cpp.
void Plasma::WebContent::mouseMoveEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [protected] |
Definition at line 137 of file webcontent.cpp.
void Plasma::WebContent::mousePressEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [protected] |
Definition at line 152 of file webcontent.cpp.
void Plasma::WebContent::mouseReleaseEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [protected] |
Definition at line 182 of file webcontent.cpp.
QWebPage * Plasma::WebContent::page | ( | ) | const |
The QWebPage associated with this item.
Useful when more of the features of the full QWebPage object need to be accessed.
Definition at line 117 of file webcontent.cpp.
void Plasma::WebContent::paint | ( | QPainter * | painter, | |
const QStyleOptionGraphicsItem * | option, | |||
QWidget * | widget = 0 | |||
) | [protected] |
void Plasma::WebContent::setGeometry | ( | const QRectF & | geometry | ) |
Sets the html to be shown along with a base URL to be used to resolve relative references.
- Parameters:
-
html the html (in utf8) to display in the content area baseUrl the base url for relative references
Definition at line 82 of file webcontent.cpp.
void Plasma::WebContent::setHtml | ( | const QByteArray & | html, | |
const QUrl & | baseUrl = QUrl() | |||
) |
Sets the html to be shown along with a base URL to be used to resolve relative references.
- Parameters:
-
html the html (in utf8) to display in the content area baseUrl the base url for relative references
Definition at line 74 of file webcontent.cpp.
void Plasma::WebContent::setPage | ( | QWebPage * | page | ) |
Sets the page to use in this item.
The owner of the webpage remains, however if this WebContent object is the owner of the current page, then the current page is deleted
- Parameters:
-
page the page to set in this view
Definition at line 99 of file webcontent.cpp.
void Plasma::WebContent::setUrl | ( | const QUrl & | url | ) |
Sets the URL to display.
Loading may happen asynchronously.
- Parameters:
-
url the location of the content to load.
Definition at line 66 of file webcontent.cpp.
void Plasma::WebContent::wheelEvent | ( | QGraphicsSceneWheelEvent * | event | ) | [protected] |
Definition at line 212 of file webcontent.cpp.
The documentation for this class was generated from the following files: