QSizeF intrinsicSize(QTextDocument *doc, int posInDocument, const QTextFormat &format) override
Method for getting custom element (frame) size. Though frame symbol has no size, this method returns ...
void setSyntaxStyle(QSyntaxStyle *style)
Method for setting syntax style for rendering.
QSyntaxStyle * syntaxStyle() const
Method for getting syntax style.
QFramedTextAttribute(QObject *parent=nullptr)
Constructor.
void frame(QTextCursor cursor)
Method for creating frame in cursor selection.
void drawObject(QPainter *painter, const QRectF &rect, QTextDocument *doc, int posInDocument, const QTextFormat &format) override
Method for drawing frame.
static int type()
Static method for getting framed text attribute type.
void clear(QTextCursor cursor)
Method for clearing all frames with desired cursor.