QQmlSA::FixSuggestion Class
class QQmlSA::FixSuggestionStellt einen Korrekturvorschlag für ein Problem im Quellcode dar. Mehr...
Kopfzeile: | #include <FixSuggestion> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlCompiler) target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler) |
Status: | Technische Vorschau |
Öffentliche Funktionen
FixSuggestion(const QString &fixDescription, const QQmlSA::SourceLocation &location, const QString &replacement = QString()) | |
FixSuggestion(const QQmlSA::FixSuggestion &other) | |
FixSuggestion(QQmlSA::FixSuggestion &&other) | |
~FixSuggestion() | |
QString | fileName() const |
QString | fixDescription() const |
QString | hint() const |
bool | isAutoApplicable() const |
QQmlSA::SourceLocation | location() const |
QString | replacement() const |
void | setAutoApplicable(bool autoApplicable = true) |
void | setFileName(const QString &fileName) |
void | setHint(const QString &hint) |
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 der Mitgliederfunktionen
FixSuggestion::FixSuggestion(const QString &fixDescription, const QQmlSA::SourceLocation &location, const QString &replacement = QString())
Erzeugt ein FixSuggestion-Objekt.
FixSuggestion::FixSuggestion(const QQmlSA::FixSuggestion &other)
Erzeugt eine Kopie von other.
[noexcept]
FixSuggestion::FixSuggestion(QQmlSA::FixSuggestion &&other)
Move-konstruiert eine FixSuggestion-Instanz.
[noexcept]
FixSuggestion::~FixSuggestion()
Zerstört die Instanz FixSuggestion.
QString FixSuggestion::fileName() const
Gibt den Namen der Datei zurück, auf die dieser Korrekturvorschlag zutrifft.
Siehe auch setFileName().
QString FixSuggestion::fixDescription() const
Gibt die Beschreibung des Fixes zurück.
QString FixSuggestion::hint() const
Gibt den Hinweis für diesen Korrekturvorschlag zurück.
Siehe auch setHint().
bool FixSuggestion::isAutoApplicable() const
Gibt zurück, ob dieser Korrekturvorschlag automatisch angewendet werden kann.
QQmlSA::SourceLocation FixSuggestion::location() const
Gibt den Ort zurück, an dem die Korrektur angewendet werden soll.
QString FixSuggestion::replacement() const
Gibt die Korrektur zurück, die den problematischen Quellcode ersetzen wird.
void FixSuggestion::setAutoApplicable(bool autoApplicable = true)
Legt autoApplicable fest, um zu bestimmen, ob dieser Korrekturvorschlag automatisch angewendet werden kann.
Siehe auch isAutoApplicable().
void FixSuggestion::setFileName(const QString &fileName)
Legt fileName als Namen der Datei fest, für die dieser Korrekturvorschlag gilt.
Siehe auch fileName().
void FixSuggestion::setHint(const QString &hint)
Setzt hint als Hinweis für diesen Korrekturvorschlag.
Siehe auch hint().
[noexcept]
QQmlSA::FixSuggestion &FixSuggestion::operator=(QQmlSA::FixSuggestion &&other)
Verschieben - weist other dieser FixSuggestion Instanz zu.
QQmlSA::FixSuggestion &FixSuggestion::operator=(const QQmlSA::FixSuggestion &other)
Weist other dieser FixSuggestion Instanz zu.
Verwandte Nicht-Mitglieder
bool operator!=(const QQmlSA::FixSuggestion &lhs, const QQmlSA::FixSuggestion &rhs)
Gibt true
zurück, wenn lhs und rhs nicht gleich sind, und andernfalls false
.
bool operator==(const QQmlSA::FixSuggestion &lhs, const QQmlSA::FixSuggestion &rhs)
Gibt true
zurück, wenn lhs und rhs gleich sind, und andernfalls false
.
© 2025 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.