QAccessibleTextUpdateEvent Class
The QAccessibleTextUpdateEvent class notifies about text changes. This is for accessibles that support editable text such as line edits. This event occurs for example when a portion of selected text gets replaced by pasting a new text or in override mode of editors. More...
Header: | #include <QAccessibleTextUpdateEvent> |
qmake: | QT += gui |
Inherits: | QAccessibleTextCursorEvent |
Public Functions
QAccessibleTextUpdateEvent(QObject *object, int position, const QString &oldText, const QString &text) | |
QAccessibleTextUpdateEvent(QAccessibleInterface *iface, int position, const QString &oldText, const QString &text) | |
int | changePosition() const |
QString | textInserted() const |
QString | textRemoved() const |
- 2 public functions inherited from QAccessibleTextCursorEvent
- 5 public functions inherited from QAccessibleEvent
Protected Variables
QString | m_oldText |
int | m_position |
QString | m_text |
Detailed Description
The QAccessibleTextUpdateEvent class notifies about text changes. This is for accessibles that support editable text such as line edits. This event occurs for example when a portion of selected text gets replaced by pasting a new text or in override mode of editors.
This class is used with QAccessible::updateAccessibility().
Member Function Documentation
QAccessibleTextUpdateEvent::QAccessibleTextUpdateEvent(QObject *object, int position, const QString &oldText, const QString &text)
Constructs a new QAccessibleTextUpdateEvent for object. The text change takes place at position where the oldText was removed and text inserted instead.
QAccessibleTextUpdateEvent::QAccessibleTextUpdateEvent(QAccessibleInterface *iface, int position, const QString &oldText, const QString &text)
Constructs a new QAccessibleTextUpdateEvent for iface. The text change takes place at position where the oldText was removed and text inserted instead.
int QAccessibleTextUpdateEvent::changePosition() const
Returns where the change took place.
QString QAccessibleTextUpdateEvent::textInserted() const
Returns the inserted text.
QString QAccessibleTextUpdateEvent::textRemoved() const
Returns the removed text.
© 2019 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.