edbee - Qt Editor Library v0.11.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
edbee::TextLayoutBuilder Class Reference

#include <textlayout.h>

+ Collaboration diagram for edbee::TextLayoutBuilder:

Public Member Functions

 TextLayoutBuilder (TextLayout *textLayout, QString &baseString, QVector< QTextLayout::FormatRange > &baseFormatRanges)
 
void replace (int index, int length, const QString replacement, QTextCharFormat format)
 

Protected Attributes

TextLayouttextLayoutRef_
 A reference to the textlayout.
 
QString & baseString_
 A reference to the base-string. (This string is modified!)
 
QVector< QTextLayout::FormatRange > & baseFormatRanges_
 A reference to the baseFormat range (This list is modified!)
 

Constructor & Destructor Documentation

◆ TextLayoutBuilder()

edbee::TextLayoutBuilder::TextLayoutBuilder ( TextLayout * textLayout,
QString & baseString,
QVector< QTextLayout::FormatRange > & baseFormatRanges )

Member Function Documentation

◆ replace()

void edbee::TextLayoutBuilder::replace ( int index,
int length,
const QString replacement,
QTextCharFormat format )
Todo
: Should we store the original length!?!?!?

Member Data Documentation

◆ baseFormatRanges_

QVector<QTextLayout::FormatRange>& edbee::TextLayoutBuilder::baseFormatRanges_
protected

A reference to the baseFormat range (This list is modified!)

◆ baseString_

QString& edbee::TextLayoutBuilder::baseString_
protected

A reference to the base-string. (This string is modified!)

◆ textLayoutRef_

TextLayout* edbee::TextLayoutBuilder::textLayoutRef_
protected

A reference to the textlayout.


The documentation for this class was generated from the following files: