![]() |
Qt 6.x
The Qt SDK
|
#include <qtextdocument_p.h>
Collaboration diagram for Utils::TextDocument:Public Member Functions | |
| TextDocument ()=default | |
| TextDocument (const QString &text) | |
| TextBlock | findBlockByNumber (int blockNumber) const |
| TextBlock | findBlockByLineNumber (int lineNumber) const |
| QChar | characterAt (int pos) const |
| int | characterCount () const |
| TextBlock | begin () const |
| TextBlock | firstBlock () const |
| TextBlock | lastBlock () const |
| std::optional< int > | version () const |
| void | setVersion (std::optional< int >) |
| QString | toPlainText () const |
| void | setPlainText (const QString &text) |
| bool | isModified () const |
| void | setModified (bool modified) |
| void | setUndoRedoEnabled (bool enable) |
| void | clear () |
| void | setUserState (int blockNumber, int state) |
| int | userState (int blockNumber) const |
| QMutex * | mutex () const |
Definition at line 31 of file qtextdocument_p.h.
|
default |
|
explicit |
Definition at line 9 of file qtextdocument.cpp.
References setPlainText(), and text.
Here is the call graph for this function:| TextBlock Utils::TextDocument::begin | ( | ) | const |
Definition at line 36 of file qtextdocument.cpp.
Referenced by firstBlock().
Here is the caller graph for this function:| QChar Utils::TextDocument::characterAt | ( | int | pos | ) | const |
Definition at line 26 of file qtextdocument.cpp.
References QString::at(), and pos.
Here is the call graph for this function:| int Utils::TextDocument::characterCount | ( | ) | const |
Definition at line 31 of file qtextdocument.cpp.
References QString::size().
Referenced by Utils::TextCursor::movePosition().
Here is the call graph for this function:
Here is the caller graph for this function:| void Utils::TextDocument::clear | ( | ) |
| TextBlock Utils::TextDocument::findBlockByLineNumber | ( | int | lineNumber | ) | const |
Definition at line 21 of file qtextdocument.cpp.
References findBlockByNumber().
Here is the call graph for this function:| TextBlock Utils::TextDocument::findBlockByNumber | ( | int | blockNumber | ) | const |
Definition at line 14 of file qtextdocument.cpp.
Referenced by findBlockByLineNumber(), Utils::TextBlock::next(), and Utils::TextBlock::previous().
Here is the caller graph for this function:| TextBlock Utils::TextDocument::firstBlock | ( | ) | const |
Definition at line 41 of file qtextdocument.cpp.
References begin().
Referenced by Utils::TextCursor::block().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Utils::TextDocument::isModified | ( | ) | const |
Definition at line 97 of file qtextdocument.cpp.
| TextBlock Utils::TextDocument::lastBlock | ( | ) | const |
Definition at line 46 of file qtextdocument.cpp.
| QMutex * Utils::TextDocument::mutex | ( | ) | const |
Definition at line 119 of file qtextdocument.cpp.
| void Utils::TextDocument::setModified | ( | bool | modified | ) |
Definition at line 102 of file qtextdocument.cpp.
Definition at line 66 of file qtextdocument.cpp.
References QString::endsWith(), QString::indexOf(), QString::size(), and text.
Referenced by TextDocument(), and Utils::TextCursor::insertText().
Here is the call graph for this function:
Here is the caller graph for this function:| void Utils::TextDocument::setUndoRedoEnabled | ( | bool | enable | ) |
| void Utils::TextDocument::setUserState | ( | int | blockNumber, |
| int | state | ||
| ) |
Definition at line 107 of file qtextdocument.cpp.
References state.
Referenced by Utils::TextBlock::setUserState().
Here is the caller graph for this function:| void Utils::TextDocument::setVersion | ( | std::optional< int > | v | ) |
Definition at line 56 of file qtextdocument.cpp.
| QString Utils::TextDocument::toPlainText | ( | ) | const |
Definition at line 61 of file qtextdocument.cpp.
Referenced by Utils::TextCursor::insertText(), Utils::TextCursor::selectedText(), and Utils::TextBlock::text().
Here is the caller graph for this function:| int Utils::TextDocument::userState | ( | int | blockNumber | ) | const |
Definition at line 113 of file qtextdocument.cpp.
Referenced by Utils::TextBlock::userState().
Here is the caller graph for this function:| std::optional< int > Utils::TextDocument::version | ( | ) | const |
Definition at line 51 of file qtextdocument.cpp.