QQmlSA::FixSuggestion Class

class QQmlSA::FixSuggestion

Represents a suggested fix for an issue in the source code. More...

Header: #include <FixSuggestion>
CMake: find_package(Qt6 REQUIRED COMPONENTS QmlCompiler)
target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler)
Status: Technical Preview

Public Functions

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)

Detailed Description

Member Function Documentation

QString FixSuggestion::fileName() const

Returns the name of the file where this fix suggestion applies.

See also setFileName().

QString FixSuggestion::fixDescription() const

Returns the description of the fix.

QString FixSuggestion::hint() const

Returns the hint for this fix suggestion.

See also setHint().

bool FixSuggestion::isAutoApplicable() const

Returns whether this suggested fix can be applied automatically.

QQmlSA::SourceLocation FixSuggestion::location() const

Returns the location where the fix would be applied.

QString FixSuggestion::replacement() const

Returns the fix that will replace the problematic source code.

void FixSuggestion::setAutoApplicable(bool autoApplicable = true)

Sets autoApplicable to determine whether this suggested fix can be applied automatically.

See also isAutoApplicable().

void FixSuggestion::setFileName(const QString &fileName)

Sets fileName as the name of the file where this fix suggestion applies.

See also fileName().

void FixSuggestion::setHint(const QString &hint)

Sets hint as the hint for this fix suggestion.

See also hint().

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