QQmlSA::FixSuggestion Class
class QQmlSA::FixSuggestionRepresenta una corrección sugerida para un problema en el código fuente. Más...
| Cabecera: | #include <FixSuggestion> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlCompiler)target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler) |
Funciones públicas
| 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) |
No miembros relacionados
| bool | operator!=(const QQmlSA::FixSuggestion &lhs, const QQmlSA::FixSuggestion &rhs) |
| bool | operator==(const QQmlSA::FixSuggestion &lhs, const QQmlSA::FixSuggestion &rhs) |
Documentación de las funciones de los miembros
FixSuggestion::FixSuggestion(const QString &fixDescription, const QQmlSA::SourceLocation &location, const QString &replacement = QString())
Crea un objeto FixSuggestion.
FixSuggestion::FixSuggestion(const QQmlSA::FixSuggestion &other)
Crea una copia de other.
[noexcept] FixSuggestion::FixSuggestion(QQmlSA::FixSuggestion &&other)
Move-construye una instancia de FixSuggestion.
[noexcept] FixSuggestion::~FixSuggestion()
Destruye la instancia FixSuggestion.
QString FixSuggestion::fileName() const
Devuelve el nombre del archivo al que se aplica esta sugerencia de corrección.
Véase también setFileName().
QString FixSuggestion::fixDescription() const
Devuelve la descripción del arreglo.
QString FixSuggestion::hint() const
Devuelve la sugerencia para esta corrección.
Véase también setHint().
bool FixSuggestion::isAutoApplicable() const
Devuelve si esta corrección sugerida puede aplicarse automáticamente.
QQmlSA::SourceLocation FixSuggestion::location() const
Devuelve la ubicación en la que se aplicaría la corrección.
QString FixSuggestion::replacement() const
Devuelve la corrección que sustituirá al código fuente problemático.
void FixSuggestion::setAutoApplicable(bool autoApplicable = true)
Establece autoApplicable para determinar si esta corrección sugerida puede aplicarse automáticamente.
Véase también isAutoApplicable().
void FixSuggestion::setFileName(const QString &fileName)
Establece fileName como el nombre del archivo donde se aplica esta sugerencia de corrección.
Véase también fileName().
void FixSuggestion::setHint(const QString &hint)
Establece hint como pista para esta sugerencia de corrección.
Véase también hint().
[noexcept] QQmlSA::FixSuggestion &FixSuggestion::operator=(QQmlSA::FixSuggestion &&other)
Mover-asigna other a esta instancia FixSuggestion.
QQmlSA::FixSuggestion &FixSuggestion::operator=(const QQmlSA::FixSuggestion &other)
Asigna other a esta instancia de FixSuggestion.
Relacionados No miembros
bool operator!=(const QQmlSA::FixSuggestion &lhs, const QQmlSA::FixSuggestion &rhs)
Devuelve true si lhs y rhs no son iguales, y false en caso contrario.
bool operator==(const QQmlSA::FixSuggestion &lhs, const QQmlSA::FixSuggestion &rhs)
Devuelve true si lhs y rhs son iguales, y false en caso contrario.
© 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.