FixSuggestion Class
class QQmlSA::FixSuggestionソースコードの問題に対する修正案を表します。詳細...
ヘッダ | #include <FixSuggestion> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlCompiler) target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler) |
ステータス | テクニカルプレビュー |
パブリック関数
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) |
関連する非メンバー
bool | operator!=(const QQmlSA::FixSuggestion &lhs, const QQmlSA::FixSuggestion &rhs) |
bool | operator==(const QQmlSA::FixSuggestion &lhs, const QQmlSA::FixSuggestion &rhs) |
メンバー関数ドキュメント
FixSuggestion::FixSuggestion(const QString &fixDescription, const QQmlSA::SourceLocation &location, const QString &replacement = QString())
FixSuggestionオブジェクトを作成します。
FixSuggestion::FixSuggestion(const QQmlSA::FixSuggestion &other)
other のコピーを作成する。
[noexcept]
FixSuggestion::FixSuggestion(QQmlSA::FixSuggestion &&other)
Move-FixSuggestionインスタンスを構築します。
[noexcept]
FixSuggestion::~FixSuggestion()
FixSuggestion インスタンスを破棄する。
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()も参照してください 。
[noexcept]
QQmlSA::FixSuggestion &FixSuggestion::operator=(QQmlSA::FixSuggestion &&other)
Move-other をこのFixSuggestion インスタンスに割り当てる。
QQmlSA::FixSuggestion &FixSuggestion::operator=(const QQmlSA::FixSuggestion &other)
このFixSuggestion インスタンスにother を割り当てる。
関連する非会員
bool operator!=(const QQmlSA::FixSuggestion &lhs, const QQmlSA::FixSuggestion &rhs)
lhs とrhs が等しくなければtrue
を、そうでなければfalse
を返す。
bool operator==(const QQmlSA::FixSuggestion &lhs, const QQmlSA::FixSuggestion &rhs)
lhs とrhs が等しければtrue
を、そうでなければ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.