#include <VideoPlayerTextObject.h>
Public Member Functions | |
| QSizeF | intrinsicSize (QTextDocument *doc, int posInDocument, const QTextFormat &format) |
| Called when size of visible videoplayer object in the document needs to be calculated. | |
| void | drawObject (QPainter *painter, const QRectF &rect, QTextDocument *doc, int posInDocument, const QTextFormat &format) |
| Called when visible videoplayer object in the document needs to be redrawn. | |
Used for keeping the videoplayer objects in correct places within the text editor.
| void VideoPlayerTextObject::drawObject | ( | QPainter * | painter, | |
| const QRectF & | rect, | |||
| QTextDocument * | doc, | |||
| int | posInDocument, | |||
| const QTextFormat & | format | |||
| ) |
Called when visible videoplayer object in the document needs to be redrawn.
| painter | QPainter used for drawing. Not used in this implementation | |
| rect | Area within the text document where the object needs to be drawn. Used when calculating the location of Video embedded in the text. | |
| doc | Pointer to document. Not used in this implementation. | |
| posInDocument | Position of the object in the document. Not used in this implementation. | |
| format | Format of the object. Stores pointer to struct VideoTextobjectListEntry as MyQTextBrowser::VideoPlayer property. This pointer can be used for accessing the related video player widget. |
| QSizeF VideoPlayerTextObject::intrinsicSize | ( | QTextDocument * | doc, | |
| int | posInDocument, | |||
| const QTextFormat & | format | |||
| ) |
Called when size of visible videoplayer object in the document needs to be calculated.
| doc | Pointer to document. Not used in this implementation. | |
| posInDocument | Position of embedded video in document counted as characters/textobjects from the beginning. Not used in this implementation. | |
| format | Format of the object. Stores pointer to struct VideoTextobjectListEntry as MyQTextBrowser::VideoPlayer property. This pointer can be used for accessing the related video player widget. |
1.5.9