QQmlSA::FixSuggestion Class
class QQmlSA::FixSuggestionRepresenta uma sugestão de correção para um problema no código-fonte. 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
| FixSuggestion(const QString &description, const QQmlSA::SourceLocation &location, const QList<QQmlSA::DocumentEdit> &documentEdits = {}) | |
| FixSuggestion(const QString &description, const QQmlSA::SourceLocation &location, const QQmlSA::DocumentEdit &documentEdit) | |
| FixSuggestion(const QQmlSA::FixSuggestion &other) | |
| FixSuggestion(QQmlSA::FixSuggestion &&other) | |
| ~FixSuggestion() | |
| void | addDocumentEdit(const QQmlSA::DocumentEdit &edit) |
| QString | description() const |
| QList<QQmlSA::DocumentEdit> | documentEdits() const |
| QString | fileName() const |
| bool | isAutoApplicable() const |
| QQmlSA::SourceLocation | location() const |
| void | setAutoApplicable(bool autoApplicable = true) |
| void | setFileName(const QString &fileName) |
| QQmlSA::FixSuggestion & | operator=(QQmlSA::FixSuggestion &&other) |
| QQmlSA::FixSuggestion & | operator=(const QQmlSA::FixSuggestion &other) |
Elementos não-membros relacionados
| bool | operator!=(const QQmlSA::FixSuggestion &lhs, const QQmlSA::FixSuggestion &rhs) |
| bool | operator==(const QQmlSA::FixSuggestion &lhs, const QQmlSA::FixSuggestion &rhs) |
Documentação da função de membro
FixSuggestion::FixSuggestion(const QString &description, const QQmlSA::SourceLocation &location, const QList<QQmlSA::DocumentEdit> &documentEdits = {})
Cria um objeto FixSuggestion.
FixSuggestion::FixSuggestion(const QString &description, const QQmlSA::SourceLocation &location, const QQmlSA::DocumentEdit &documentEdit)
Cria um objeto FixSuggestion.
FixSuggestion::FixSuggestion(const QQmlSA::FixSuggestion &other)
Cria uma cópia de other.
[noexcept] FixSuggestion::FixSuggestion(QQmlSA::FixSuggestion &&other)
Cria uma instância de FixSuggestion por meio da construção move.
[noexcept] FixSuggestion::~FixSuggestion()
Destrói a instância do ` FixSuggestion `.
void FixSuggestion::addDocumentEdit(const QQmlSA::DocumentEdit &edit)
Adiciona um documento edit à lista de edições relacionadas a esta correção.
QString FixSuggestion::description() const
Retorna a descrição da correção.
QList<QQmlSA::DocumentEdit> FixSuggestion::documentEdits() const
Retorna a lista das alterações que seriam feitas no documento ao aplicar essa correção.
QString FixSuggestion::fileName() const
Retorna o nome do arquivo ao qual esta sugestão de correção se aplica.
Veja também setFileName().
bool FixSuggestion::isAutoApplicable() const
Indica se essa correção sugerida pode ser aplicada automaticamente.
QQmlSA::SourceLocation FixSuggestion::location() const
Retorna a localização da correção.
void FixSuggestion::setAutoApplicable(bool autoApplicable = true)
Define ` autoApplicable ` para determinar se essa correção sugerida pode ser aplicada automaticamente.
Veja também isAutoApplicable().
void FixSuggestion::setFileName(const QString &fileName)
Define fileName como o nome do arquivo ao qual esta sugestão de correção se aplica.
Veja também fileName().
[noexcept] QQmlSA::FixSuggestion &FixSuggestion::operator=(QQmlSA::FixSuggestion &&other)
Atribui o ` other ` a esta instância do ` FixSuggestion `.
QQmlSA::FixSuggestion &FixSuggestion::operator=(const QQmlSA::FixSuggestion &other)
Atribui o other a esta instância do FixSuggestion.
Não-membros relacionados
bool operator!=(const QQmlSA::FixSuggestion &lhs, const QQmlSA::FixSuggestion &rhs)
Retorna ` true ` se ` lhs ` e ` rhs ` não forem iguais e, caso contrário, ` false `.
bool operator==(const QQmlSA::FixSuggestion &lhs, const QQmlSA::FixSuggestion &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.