QQmlSA::FixSuggestion Class
class QQmlSA::FixSuggestionソースコード内の問題に対する修正案を示しています。詳細...
| ヘッダー: | #include <qqmlsa.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlCompiler) target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler) |
| ステータス: | テクノロジープレビュー |
このクラスはテクノロジープレビュー段階にあり、変更される可能性があります。
パブリック関数
| FixSuggestion(const QString &description, const QQmlSA::SourceLocation &location, const QList<QQmlSA::DocumentEdit> &documentEdits = {}) | |
| FixSuggestion(const QString &description, const QQmlSA::SourceLocation &location, const QQmlSA::DocumentEdit &documentEdit) | |
| FixSuggestion(const QQmlSA::FixSuggestion &other) | |
| FixSuggestion(QQmlSA::FixSuggestion &&other) | |
| ~FixSuggestion() | |
| void | addDocumentEdit(const QQmlSA::DocumentEdit &edit) |
| QString | description() const |
| QList<QQmlSA::DocumentEdit> | documentEdits() const |
| QString | fileName() const |
| bool | isAutoApplicable() const |
| QQmlSA::SourceLocation | location() const |
| void | setAutoApplicable(bool autoApplicable = true) |
| void | setFileName(const QString &fileName) |
| 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 &description, const QQmlSA::SourceLocation &location, const QList<QQmlSA::DocumentEdit> &documentEdits = {})
FixSuggestion オブジェクトを作成します。
FixSuggestion::FixSuggestion(const QString &description, const QQmlSA::SourceLocation &location, const QQmlSA::DocumentEdit &documentEdit)
FixSuggestion オブジェクトを作成します。
FixSuggestion::FixSuggestion(const QQmlSA::FixSuggestion &other)
other のコピーを作成します。
[noexcept] FixSuggestion::FixSuggestion(QQmlSA::FixSuggestion &&other)
FixSuggestion のインスタンスをムーブコンストラクトで生成します。
[noexcept] FixSuggestion::~FixSuggestion()
FixSuggestion インスタンスを破棄します。
void FixSuggestion::addDocumentEdit(const QQmlSA::DocumentEdit &edit)
この修正の編集履歴に、ドキュメント「edit 」を追加します。
QString FixSuggestion::description() const
修正内容の説明を返します。
QList<QQmlSA::DocumentEdit> FixSuggestion::documentEdits() const
この修正を適用することで行われるドキュメントの編集内容のリストを返します。
QString FixSuggestion::fileName() const
この修正提案が適用されるファイル名を返します。
setFileName()も参照してください 。
bool FixSuggestion::isAutoApplicable() const
この修正案を自動的に適用できるかどうかを返します。
QQmlSA::SourceLocation FixSuggestion::location() const
フィックスの位置を返します。
void FixSuggestion::setAutoApplicable(bool autoApplicable = true)
autoApplicable を設定し、この修正案を自動的に適用できるかどうかを判断します。
isAutoApplicable()も参照してください 。
void FixSuggestion::setFileName(const QString &fileName)
この修正提案が適用されるファイルの名前として「fileName 」を設定します。
fileName()も参照してください 。
[noexcept] QQmlSA::FixSuggestion &FixSuggestion::operator=(QQmlSA::FixSuggestion &&other)
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 ` を返します。
© 2026 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.