QQmlSA::FixSuggestion Class
class QQmlSA::FixSuggestionStellt einen Lösungsvorschlag für ein Problem im Quellcode dar. Mehr...
| Überschrift: | #include <qqmlsa.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlCompiler) target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler) |
| Status: | Technologievorschau |
Diese Klasse befindet sich in der Technologievorschau und kann sich noch ändern.
Öffentliche Funktionen
| 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) |
Verwandte Nicht-Mitglieder
| bool | operator!=(const QQmlSA::FixSuggestion &lhs, const QQmlSA::FixSuggestion &rhs) |
| bool | operator==(const QQmlSA::FixSuggestion &lhs, const QQmlSA::FixSuggestion &rhs) |
Dokumentation zu den Member-Funktionen
FixSuggestion::FixSuggestion(const QString &description, const QQmlSA::SourceLocation &location, const QList<QQmlSA::DocumentEdit> &documentEdits = {})
Erstellt ein „FixSuggestion“-Objekt.
FixSuggestion::FixSuggestion(const QString &description, const QQmlSA::SourceLocation &location, const QQmlSA::DocumentEdit &documentEdit)
Erstellt ein „FixSuggestion“-Objekt.
FixSuggestion::FixSuggestion(const QQmlSA::FixSuggestion &other)
Erstellt eine Kopie von „ other “.
[noexcept] FixSuggestion::FixSuggestion(QQmlSA::FixSuggestion &&other)
Erstellt eine „FixSuggestion“-Instanz mithilfe von „move“.
[noexcept] FixSuggestion::~FixSuggestion()
Löscht die „ FixSuggestion “-Instanz.
void FixSuggestion::addDocumentEdit(const QQmlSA::DocumentEdit &edit)
Fügt der Liste der Bearbeitungen für diesen Fix ein Dokument mit dem Titel „ edit “ hinzu.
QString FixSuggestion::description() const
Gibt die Beschreibung der Korrektur zurück.
QList<QQmlSA::DocumentEdit> FixSuggestion::documentEdits() const
Gibt die Liste der Dokumentänderungen zurück, die durch die Anwendung dieses Fixes vorgenommen würden.
QString FixSuggestion::fileName() const
Gibt den Namen der Datei zurück, auf die sich dieser Korrekturvorschlag bezieht.
Siehe auch ` setFileName()`.
bool FixSuggestion::isAutoApplicable() const
Gibt zurück, ob diese vorgeschlagene Korrektur automatisch angewendet werden kann.
QQmlSA::SourceLocation FixSuggestion::location() const
Gibt den Standort der Ortung zurück.
void FixSuggestion::setAutoApplicable(bool autoApplicable = true)
Setzt „ autoApplicable “, um festzustellen, ob diese vorgeschlagene Korrektur automatisch angewendet werden kann.
Siehe auch isAutoApplicable().
void FixSuggestion::setFileName(const QString &fileName)
Legt „ fileName “ als Namen der Datei fest, auf die dieser Korrekturvorschlag zutrifft.
Siehe auch fileName().
[noexcept] QQmlSA::FixSuggestion &FixSuggestion::operator=(QQmlSA::FixSuggestion &&other)
other Weist dieser „ FixSuggestion “-Instanz „ “ zu. zu dieser „ “-Instanz.
QQmlSA::FixSuggestion &FixSuggestion::operator=(const QQmlSA::FixSuggestion &other)
other Weist dieser Instanz von „ FixSuggestion “ die Instanz „ “ zu. . . . . . . . . . . . . . . . . . . . . . . .xml-ph-0001@d
Zugehörige Nicht-Mitglieder
bool operator!=(const QQmlSA::FixSuggestion &lhs, const QQmlSA::FixSuggestion &rhs)
Gibt „ true “ zurück, wenn „ lhs “ und „ rhs “ nicht gleich sind, andernfalls „ false “.
bool operator==(const QQmlSA::FixSuggestion &lhs, const QQmlSA::FixSuggestion &rhs)
Gibt „ true “ zurück, wenn „ lhs “ und „ rhs “ gleich sind, andernfalls „ 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.