void drawObject(QPainter *painter, const QRectF &rect, QTextDocument *doc, int posInDocument, const QTextFormat &format) override
Method for drawing frame.
QFramedTextAttribute(QObject *parent=nullptr)
Constructor.
void frame(QTextCursor cursor)
Method for creating frame in cursor selection.
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 ...
static int type()
Static method for getting framed text attribute type.
void clear(QTextCursor cursor)
Method for clearing all frames with desired cursor.
QSyntaxStyle * syntaxStyle() const
Method for getting syntax style.
QFramedTextAttribute & operator=(const QFramedTextAttribute &)=delete
void setSyntaxStyle(QSyntaxStyle *style)
Method for setting syntax style for rendering.
Class, that describes attribute for making text frame.