On this page

QQmlSA::DocumentEdit Class

class QQmlSA::DocumentEdit

Represents 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)
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.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.