![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qtextdocument_p.h>
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 34 of file qtextdocument_p.h.
|
default |
|
explicit |
Definition at line 12 of file qtextdocument.cpp.
| TextBlock Utils::TextDocument::begin | ( | ) | const |
Definition at line 39 of file qtextdocument.cpp.
Referenced by firstBlock().
| QChar Utils::TextDocument::characterAt | ( | int | pos | ) | const |
Definition at line 29 of file qtextdocument.cpp.
| int Utils::TextDocument::characterCount | ( | ) | const |
Definition at line 34 of file qtextdocument.cpp.
Referenced by Utils::TextCursor::movePosition().
| void Utils::TextDocument::clear | ( | ) |
| TextBlock Utils::TextDocument::findBlockByLineNumber | ( | int | lineNumber | ) | const |
Definition at line 24 of file qtextdocument.cpp.
References findBlockByNumber().
| TextBlock Utils::TextDocument::findBlockByNumber | ( | int | blockNumber | ) | const |
Definition at line 17 of file qtextdocument.cpp.
Referenced by findBlockByLineNumber(), Utils::TextBlock::next(), and Utils::TextBlock::previous().
| TextBlock Utils::TextDocument::firstBlock | ( | ) | const |
Definition at line 44 of file qtextdocument.cpp.
References begin().
Referenced by Utils::TextCursor::block().
| bool Utils::TextDocument::isModified | ( | ) | const |
Definition at line 100 of file qtextdocument.cpp.
| TextBlock Utils::TextDocument::lastBlock | ( | ) | const |
Definition at line 49 of file qtextdocument.cpp.
| QMutex * Utils::TextDocument::mutex | ( | ) | const |
Definition at line 122 of file qtextdocument.cpp.
| void Utils::TextDocument::setModified | ( | bool | modified | ) |
Definition at line 105 of file qtextdocument.cpp.
Definition at line 69 of file qtextdocument.cpp.
References Utils::TextBlock::setBlockNumber(), Utils::TextBlock::setDocument(), Utils::TextBlock::setLength(), and Utils::TextBlock::setPosition().
| void Utils::TextDocument::setUndoRedoEnabled | ( | bool | enable | ) |
| void Utils::TextDocument::setUserState | ( | int | blockNumber, |
| int | state ) |
Definition at line 110 of file qtextdocument.cpp.
Referenced by Utils::TextBlock::setUserState().
| void Utils::TextDocument::setVersion | ( | std::optional< int > | v | ) |
Definition at line 59 of file qtextdocument.cpp.
| QString Utils::TextDocument::toPlainText | ( | ) | const |
Definition at line 64 of file qtextdocument.cpp.
| int Utils::TextDocument::userState | ( | int | blockNumber | ) | const |
Definition at line 116 of file qtextdocument.cpp.
Referenced by Utils::TextBlock::userState().
| std::optional< int > Utils::TextDocument::version | ( | ) | const |
Definition at line 54 of file qtextdocument.cpp.