Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
Utils::TextBlock Class Reference

#include <qtextblock_p.h>

+ Collaboration diagram for Utils::TextBlock:

Public Member Functions

bool isValid () const
 
void setBlockNumber (int blockNumber)
 
int blockNumber () const
 
void setPosition (int position)
 
int position () const
 
void setLength (int length)
 
int length () const
 
TextBlock next () const
 
TextBlock previous () const
 
int userState () const
 
void setUserState (int state)
 
bool isVisible () const
 
void setVisible (bool visible)
 
void setLineCount (int count)
 
int lineCount () const
 
void setDocument (TextDocument *document)
 
TextDocumentdocument () const
 
QString text () const
 
int revision () const
 
void setRevision (int rev)
 

Friends

bool operator== (const TextBlock &t1, const TextBlock &t2)
 
bool operator!= (const TextBlock &t1, const TextBlock &t2)
 

Detailed Description

Definition at line 25 of file qtextblock_p.h.

Member Function Documentation

◆ blockNumber()

int Utils::TextBlock::blockNumber ( ) const

Definition at line 21 of file qtextblock.cpp.

Referenced by Utils::TextCursor::blockNumber(), and setBlockNumber().

+ Here is the caller graph for this function:

◆ document()

TextDocument * Utils::TextBlock::document ( ) const

Definition at line 71 of file qtextblock.cpp.

Referenced by setDocument(), and text().

+ Here is the caller graph for this function:

◆ isValid()

bool Utils::TextBlock::isValid ( ) const

Definition at line 11 of file qtextblock.cpp.

Referenced by Utils::TextCursor::block().

+ Here is the caller graph for this function:

◆ isVisible()

bool Utils::TextBlock::isVisible ( ) const

◆ length()

int Utils::TextBlock::length ( ) const

Definition at line 41 of file qtextblock.cpp.

Referenced by Utils::TextCursor::block(), setLength(), and text().

+ Here is the caller graph for this function:

◆ lineCount()

int Utils::TextBlock::lineCount ( ) const

◆ next()

TextBlock Utils::TextBlock::next ( ) const

Definition at line 46 of file qtextblock.cpp.

References Utils::TextDocument::findBlockByNumber().

Referenced by Utils::TextCursor::block().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ position()

int Utils::TextBlock::position ( ) const

Definition at line 31 of file qtextblock.cpp.

Referenced by Utils::TextCursor::block(), Utils::TextCursor::positionInBlock(), setPosition(), and text().

+ Here is the caller graph for this function:

◆ previous()

TextBlock Utils::TextBlock::previous ( ) const

Definition at line 51 of file qtextblock.cpp.

References Utils::TextDocument::findBlockByNumber().

+ Here is the call graph for this function:

◆ revision()

int Utils::TextBlock::revision ( ) const

Definition at line 81 of file qtextblock.cpp.

◆ setBlockNumber()

void Utils::TextBlock::setBlockNumber ( int  blockNumber)

Definition at line 16 of file qtextblock.cpp.

References blockNumber().

+ Here is the call graph for this function:

◆ setDocument()

void Utils::TextBlock::setDocument ( TextDocument document)

Definition at line 66 of file qtextblock.cpp.

References document().

+ Here is the call graph for this function:

◆ setLength()

void Utils::TextBlock::setLength ( int  length)

Definition at line 36 of file qtextblock.cpp.

References length().

+ Here is the call graph for this function:

◆ setLineCount()

void Utils::TextBlock::setLineCount ( int  count)

◆ setPosition()

void Utils::TextBlock::setPosition ( int  position)

Definition at line 26 of file qtextblock.cpp.

References position().

+ Here is the call graph for this function:

◆ setRevision()

void Utils::TextBlock::setRevision ( int  rev)

Definition at line 86 of file qtextblock.cpp.

◆ setUserState()

void Utils::TextBlock::setUserState ( int  state)

Definition at line 61 of file qtextblock.cpp.

References Utils::TextDocument::setUserState(), and state.

+ Here is the call graph for this function:

◆ setVisible()

void Utils::TextBlock::setVisible ( bool  visible)

◆ text()

QString Utils::TextBlock::text ( ) const

Definition at line 76 of file qtextblock.cpp.

References document(), length(), QString::mid(), position(), and Utils::TextDocument::toPlainText().

+ Here is the call graph for this function:

◆ userState()

int Utils::TextBlock::userState ( ) const

Definition at line 56 of file qtextblock.cpp.

References Utils::TextDocument::userState().

+ Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( const TextBlock t1,
const TextBlock t2 
)
friend

Definition at line 96 of file qtextblock.cpp.

◆ operator==

bool operator== ( const TextBlock t1,
const TextBlock t2 
)
friend

Definition at line 91 of file qtextblock.cpp.


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