QQmlSA::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)

이동-이 other 인스턴스를 FixSuggestion 인스턴스에 할당합니다.

QQmlSA::FixSuggestion &FixSuggestion::operator=(const QQmlSA::FixSuggestion &other)

otherFixSuggestion 인스턴스에 할당합니다.

관련 비회원

bool operator!=(const QQmlSA::FixSuggestion &lhs, const QQmlSA::FixSuggestion &rhs)

lhsrhs 이 같지 않으면 true 을 반환하고, 그렇지 않으면 false 을 반환합니다.

bool operator==(const QQmlSA::FixSuggestion &lhs, const QQmlSA::FixSuggestion &rhs)

lhsrhs 이 같으면 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.