FixSuggestion Class

class QQmlSA::FixSuggestion

ソースコードの問題に対する修正案を表します。詳細...

ヘッダ #include <FixSuggestion>
CMake: find_package(Qt6 REQUIRED COMPONENTS QmlCompiler)
target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler)
ステータステクニカルプレビュー

パブリック関数

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)

詳細説明

メンバ関数の説明

QString FixSuggestion::fileName() const

この修正候補が適用されるファイル名を返します。

setFileName()も参照ください

QString FixSuggestion::fixDescription() const

修正の説明を返します。

QString FixSuggestion::hint() const

この修正候補のヒントを返します。

setHint()も参照ください

bool FixSuggestion::isAutoApplicable() const

この修正案を自動的に適用できるかどうかを返します。

QQmlSA::SourceLocation FixSuggestion::location() const

修正が適用される場所を返します。

QString FixSuggestion::replacement() const

問題のあるソース・コードを置き換える修正を返します。

void FixSuggestion::setAutoApplicable(bool autoApplicable = true)

この修正案を自動的に適用できるかどうかを判断するためにautoApplicable を設定する。

isAutoApplicable()も参照

void FixSuggestion::setFileName(const QString &fileName)

この修正案を適用するファイル名をfileName に設定する。

fileName()も参照

void FixSuggestion::setHint(const QString &hint)

この修正提案のヒントとしてhint を設定する。

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.