QQmlSA::DocumentEdit Class
class QQmlSA::DocumentEditRepresents a single edit to a document. More...
| Header: | #include <qqmlsa.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlCompiler)target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler) |
| Status: | Technology preview |
This class is in technology preview and is subject to change.
Public Functions
| DocumentEdit(const QString &filename, const QQmlSA::SourceLocation &location, const QString &replacement) | |
| DocumentEdit(const QQmlSA::DocumentEdit &other) | |
| DocumentEdit(QQmlSA::DocumentEdit &&other) | |
| ~DocumentEdit() | |
| QString | filename() const |
| QQmlSA::SourceLocation | location() const |
| QString | replacement() const |
| QQmlSA::DocumentEdit & | operator=(QQmlSA::DocumentEdit &&other) |
| QQmlSA::DocumentEdit & | operator=(const QQmlSA::DocumentEdit &other) |
Related Non-Members
| bool | operator!=(const QQmlSA::DocumentEdit &lhs, const QQmlSA::DocumentEdit &rhs) |
| bool | operator==(const QQmlSA::DocumentEdit &lhs, const QQmlSA::DocumentEdit &rhs) |
Detailed Description
Member Function Documentation
DocumentEdit::DocumentEdit(const QString &filename, const QQmlSA::SourceLocation &location, const QString &replacement)
Creates a DocumentEdit object.
DocumentEdit::DocumentEdit(const QQmlSA::DocumentEdit &other)
Creates a copy of other.
DocumentEdit::DocumentEdit(QQmlSA::DocumentEdit &&other)
Move-constructs a DocumentEdit instance.
[noexcept] DocumentEdit::~DocumentEdit()
Destroys the DocumentEdit instance.
QString DocumentEdit::filename() const
Returns the file this edit applies to.
QQmlSA::SourceLocation DocumentEdit::location() const
Returns the location where the edit applies.
QString DocumentEdit::replacement() const
Returns the replacement string of the edit.
QQmlSA::DocumentEdit &DocumentEdit::operator=(QQmlSA::DocumentEdit &&other)
Move-assigns other to this DocumentEdit instance.
QQmlSA::DocumentEdit &DocumentEdit::operator=(const QQmlSA::DocumentEdit &other)
Assigns other to this DocumentEdit instance.
Related Non-Members
[noexcept] bool operator!=(const QQmlSA::DocumentEdit &lhs, const QQmlSA::DocumentEdit &rhs)
Returns true if lhs and rhs are not equal, and false otherwise.
[noexcept] bool operator==(const QQmlSA::DocumentEdit &lhs, const QQmlSA::DocumentEdit &rhs)
Returns true if lhs and rhs are equal, and false otherwise.