QQmlSA::FixSuggestion Class
class QQmlSA::FixSuggestionRepresenta una solución propuesta para un problema en el código fuente. Más información...
| Encabezado: | #include <qqmlsa.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlCompiler) target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler) |
| Estado: | Versión preliminar tecnológica |
Esta clase se encuentra en fase de vista previa tecnológica y está sujeta a cambios.
Funciones públicas
| 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) |
Elementos 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 miembro
FixSuggestion::FixSuggestion(const QString &description, const QQmlSA::SourceLocation &location, const QList<QQmlSA::DocumentEdit> &documentEdits = {})
Crea un objeto FixSuggestion.
FixSuggestion::FixSuggestion(const QString &description, const QQmlSA::SourceLocation &location, const QQmlSA::DocumentEdit &documentEdit)
Crea un objeto FixSuggestion.
FixSuggestion::FixSuggestion(const QQmlSA::FixSuggestion &other)
Crea una copia de other.
[noexcept] FixSuggestion::FixSuggestion(QQmlSA::FixSuggestion &&other)
Crea una instancia de FixSuggestion mediante «move».
[noexcept] FixSuggestion::~FixSuggestion()
Elimina la instancia de « FixSuggestion ».
void FixSuggestion::addDocumentEdit(const QQmlSA::DocumentEdit &edit)
Añade un documento edit a la lista de modificaciones de esta corrección.
QString FixSuggestion::description() const
Devuelve la descripción de la corrección.
QList<QQmlSA::DocumentEdit> FixSuggestion::documentEdits() const
Devuelve la lista de modificaciones que se realizarían en el documento al aplicar esta corrección.
QString FixSuggestion::fileName() const
Devuelve el nombre del archivo al que se aplica esta sugerencia de corrección.
Véase también setFileName().
bool FixSuggestion::isAutoApplicable() const
Indica si esta solución sugerida se puede aplicar automáticamente.
QQmlSA::SourceLocation FixSuggestion::location() const
Devuelve la ubicación de la posición fijada.
void FixSuggestion::setAutoApplicable(bool autoApplicable = true)
Establece « autoApplicable » para determinar si esta solución sugerida se puede aplicar automáticamente.
Véase también isAutoApplicable().
void FixSuggestion::setFileName(const QString &fileName)
Establece « fileName » como nombre del archivo al que se aplica esta sugerencia de corrección.
Véase también fileName().
[noexcept] QQmlSA::FixSuggestion &FixSuggestion::operator=(QQmlSA::FixSuggestion &&other)
Asigna « other » a esta instancia de « FixSuggestion ». . . . . . . . . . . . . . . . . . . . . . . . . .xml-ph-0001@
QQmlSA::FixSuggestion &FixSuggestion::operator=(const QQmlSA::FixSuggestion &other)
Asigna other a esta instancia de FixSuggestion.
Elementos no miembros relacionados
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.