QQmlSA::FixSuggestion Class
class QQmlSA::FixSuggestionRappresenta una soluzione suggerita per un problema nel codice sorgente. Maggiori informazioni...
| Intestazione: | #include <qqmlsa.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlCompiler) target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler) |
| Stato: | Anteprima tecnologica |
Questa classe è in anteprima tecnologica ed è soggetta a modifiche.
Funzioni pubbliche
| 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) |
Elementi non membri correlati
| bool | operator!=(const QQmlSA::FixSuggestion &lhs, const QQmlSA::FixSuggestion &rhs) |
| bool | operator==(const QQmlSA::FixSuggestion &lhs, const QQmlSA::FixSuggestion &rhs) |
Documentazione sulle funzioni dei membri
FixSuggestion::FixSuggestion(const QString &description, const QQmlSA::SourceLocation &location, const QList<QQmlSA::DocumentEdit> &documentEdits = {})
Crea un oggetto FixSuggestion.
FixSuggestion::FixSuggestion(const QString &description, const QQmlSA::SourceLocation &location, const QQmlSA::DocumentEdit &documentEdit)
Crea un oggetto FixSuggestion.
FixSuggestion::FixSuggestion(const QQmlSA::FixSuggestion &other)
Crea una copia di other.
[noexcept] FixSuggestion::FixSuggestion(QQmlSA::FixSuggestion &&other)
Crea un'istanza di FixSuggestion tramite il costrutto "move".
[noexcept] FixSuggestion::~FixSuggestion()
Elimina l'istanza di FixSuggestion.
void FixSuggestion::addDocumentEdit(const QQmlSA::DocumentEdit &edit)
Aggiunge un documento edit all'elenco delle modifiche relative a questa correzione.
QString FixSuggestion::description() const
Restituisce la descrizione della correzione.
QList<QQmlSA::DocumentEdit> FixSuggestion::documentEdits() const
Restituisce l'elenco delle modifiche al documento che verrebbero apportate applicando questa correzione.
QString FixSuggestion::fileName() const
Restituisce il nome del file a cui si applica questo suggerimento di correzione.
Vedi anche setFileName().
bool FixSuggestion::isAutoApplicable() const
Indica se questa correzione suggerita può essere applicata automaticamente.
QQmlSA::SourceLocation FixSuggestion::location() const
Restituisce la posizione del punto di fissaggio.
void FixSuggestion::setAutoApplicable(bool autoApplicable = true)
Imposta il parametro “ autoApplicable ” per determinare se questa correzione suggerita possa essere applicata automaticamente.
Vedi anche isAutoApplicable().
void FixSuggestion::setFileName(const QString &fileName)
Imposta “ fileName ” come nome del file a cui si applica questo suggerimento di correzione.
Vedi anche fileName().
[noexcept] QQmlSA::FixSuggestion &FixSuggestion::operator=(QQmlSA::FixSuggestion &&other)
Assegna " other " a questa istanza " FixSuggestion ".
QQmlSA::FixSuggestion &FixSuggestion::operator=(const QQmlSA::FixSuggestion &other)
Assegna other a questa istanza di FixSuggestion.
Non membri correlati
bool operator!=(const QQmlSA::FixSuggestion &lhs, const QQmlSA::FixSuggestion &rhs)
Restituisce ` true ` se ` lhs ` e ` rhs ` non sono uguali, e ` false ` in caso contrario.
bool operator==(const QQmlSA::FixSuggestion &lhs, const QQmlSA::FixSuggestion &rhs)
Restituisce ` true ` se ` lhs ` e ` rhs ` sono uguali, altrimenti restituisce ` 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.