FixSuggestion Class

class QQmlSA::FixSuggestion

Stellt 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

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)

Detaillierte Beschreibung

Dokumentation der Mitgliedsfunktionen

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().

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