Nesta página

QQmlSA::DocumentEdit Class

class QQmlSA::DocumentEdit

Representa uma única edição em um documento. Mais...

Cabeçalho: #include <qqmlsa.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS QmlCompiler)
target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler)
Status: Pré-visualização tecnológica

Esta classe está em pré-visualização tecnológica e está sujeita a alterações.

Funções públicas

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)

Descrição detalhada

Documentação das funções de membro

DocumentEdit::DocumentEdit(const QString &filename, const QQmlSA::SourceLocation &location, const QString &replacement)

Cria um objeto DocumentEdit.

DocumentEdit::DocumentEdit(const QQmlSA::DocumentEdit &other)

Cria uma cópia de other.

DocumentEdit::DocumentEdit(QQmlSA::DocumentEdit &&other)

Cria uma instância de DocumentEdit por meio da construção move.

[noexcept] DocumentEdit::~DocumentEdit()

Destrói a instância do ` DocumentEdit `.

QString DocumentEdit::filename() const

Retorna o arquivo ao qual esta edição se aplica.

QQmlSA::SourceLocation DocumentEdit::location() const

Retorna o local onde a edição é aplicada.

QString DocumentEdit::replacement() const

Retorna a string resultante da edição.

QQmlSA::DocumentEdit &DocumentEdit::operator=(QQmlSA::DocumentEdit &&other)

Atribui o ` other ` a esta instância ` DocumentEdit `.

QQmlSA::DocumentEdit &DocumentEdit::operator=(const QQmlSA::DocumentEdit &other)

Atribui o other a esta instância do DocumentEdit.

Não-membros relacionados

[noexcept] bool operator!=(const QQmlSA::DocumentEdit &lhs, const QQmlSA::DocumentEdit &rhs)

Retorna ` true ` se ` lhs ` e ` rhs ` não forem iguais e, caso contrário, ` false `.

[noexcept] bool operator==(const QQmlSA::DocumentEdit &lhs, const QQmlSA::DocumentEdit &rhs)

Retorna ` true ` se ` lhs ` e ` rhs ` forem iguais e, caso contrário, ` false `.

© 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.