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.