QQmlSA::DocumentEdit Class
class QQmlSA::DocumentEdit表示对文档进行的一次编辑。更多内容...
| 标题: | #include <qqmlsa.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlCompiler) target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler) |
| 状态: | 技术预览 |
该类目前处于技术预览阶段,内容可能会有变动。
公共函数
| DocumentEdit(const QString &filename, const QQmlSA::SourceLocation &location, const QString &replacement) | |
| DocumentEdit(const QQmlSA::DocumentEdit &other) | |
| DocumentEdit(QQmlSA::DocumentEdit &&other) | |
| ~DocumentEdit() | |
| QString | filename() const |
| QQmlSA::SourceLocation | location() const |
| QString | replacement() const |
| QQmlSA::DocumentEdit & | operator=(QQmlSA::DocumentEdit &&other) |
| QQmlSA::DocumentEdit & | operator=(const QQmlSA::DocumentEdit &other) |
相关的非成员
| bool | operator!=(const QQmlSA::DocumentEdit &lhs, const QQmlSA::DocumentEdit &rhs) |
| bool | operator==(const QQmlSA::DocumentEdit &lhs, const QQmlSA::DocumentEdit &rhs) |
成员函数文档
DocumentEdit::DocumentEdit(const QString &filename, const QQmlSA::SourceLocation &location, const QString &replacement)
创建一个 DocumentEdit 对象。
DocumentEdit::DocumentEdit(const QQmlSA::DocumentEdit &other)
创建other 的副本。
DocumentEdit::DocumentEdit(QQmlSA::DocumentEdit &&other)
通过“Move”方式构造一个 DocumentEdit 实例。
[noexcept] DocumentEdit::~DocumentEdit()
销毁该DocumentEdit 实例。
QString DocumentEdit::filename() const
返回此编辑所应用的文件。
QQmlSA::SourceLocation DocumentEdit::location() const
返回编辑所适用的位置。
QString DocumentEdit::replacement() const
返回编辑后的替换字符串。
QQmlSA::DocumentEdit &DocumentEdit::operator=(QQmlSA::DocumentEdit &&other)
将other 通过Move操作赋值给此DocumentEdit 实例。
QQmlSA::DocumentEdit &DocumentEdit::operator=(const QQmlSA::DocumentEdit &other)
将other 分配给此DocumentEdit 实例。
相关的非成员
[noexcept] bool operator!=(const QQmlSA::DocumentEdit &lhs, const QQmlSA::DocumentEdit &rhs)
如果 `lhs ` 和 `rhs ` 不相等,则返回 `true `;否则返回 `false `。
[noexcept] bool operator==(const QQmlSA::DocumentEdit &lhs, const QQmlSA::DocumentEdit &rhs)
如果 `lhs ` 和 `rhs ` 相等,则返回 `true `;否则返回 `false `。
© 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.