Represents a suggested fix for an issue in the source code. 更多...
| 头: |
#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 ) |
Creates a FixSuggestion object.
创建副本为 other .
[noexcept]
FixSuggestion::
FixSuggestion
(
QQmlSA::FixSuggestion
&&
other
)
Move-constructs a FixSuggestion instance.
[noexcept]
FixSuggestion::
~FixSuggestion
()
Destorys the FixSuggestion 实例。
Returns the name of the file where this fix suggestion applies.
另请参阅 setFileName ().
Returns the description of the fix.
Returns the hint for this fix suggestion.
另请参阅 setHint ().
Returns whether this suggested fix can be applied automatically.
Returns the location where the fix would be applied.
Returns the fix that will replace the problematic source code.
设置 autoApplicable to determine whether this suggested fix can be applied automatically.
另请参阅 isAutoApplicable ().
设置 fileName as the name of the file where this fix suggestion applies.
另请参阅 fileName ().
设置 hint as the hint for this fix suggestion.
另请参阅 hint ().
[noexcept]
QQmlSA::FixSuggestion
&FixSuggestion::
operator=
(
QQmlSA::FixSuggestion
&&
other
)
移动赋值 other 到此 FixSuggestion 实例。
赋值 other 到此 FixSuggestion 实例。
返回
true
if
lhs
and
rhs
are not equal, and
false
否则。
返回
true
if
lhs
and
rhs
are equal, and
false
否则。