The QAccessibleSimpleEditableTextInterface class is a convenience class for text-based widgets.
More...
#include <qaccessible2.h>
The QAccessibleSimpleEditableTextInterface class is a convenience class for text-based widgets.
- Warning
- This function is not part of the public interface. This function is under development and subject to change.
http://www.linux-foundation.org/en/Accessibility/IAccessible2 Specification
Definition at line 176 of file qaccessible2.h.
◆ QAccessibleSimpleEditableTextInterface()
QAccessibleSimpleEditableTextInterface::QAccessibleSimpleEditableTextInterface |
( |
QAccessibleInterface * |
accessibleInterface | ) |
|
◆ copyText()
void QAccessibleSimpleEditableTextInterface::copyText |
( |
int |
startOffset, |
|
|
int |
endOffset |
|
) |
| |
|
virtual |
Implements QAccessibleEditableTextInterface.
Definition at line 282 of file qaccessible2.cpp.
284 #ifdef QT_NO_CLIPBOARD void setText(const QString &, Mode mode=Clipboard)
Copies text into the clipboard as plain text.
static QString textForRange(QAccessibleInterface *iface, int startOffset, int endOffset)
QAccessibleInterface * iface
static QClipboard * clipboard()
Returns a pointer to the application global clipboard.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
◆ cutText()
void QAccessibleSimpleEditableTextInterface::cutText |
( |
int |
startOffset, |
|
|
int |
endOffset |
|
) |
| |
|
virtual |
Implements QAccessibleEditableTextInterface.
Definition at line 306 of file qaccessible2.cpp.
308 #ifdef QT_NO_CLIPBOARD The QString class provides a Unicode character string.
void setText(const QString &, Mode mode=Clipboard)
Copies text into the clipboard as plain text.
static QString textForRange(QAccessibleInterface *iface, int startOffset, int endOffset)
QAccessibleInterface * iface
static QClipboard * clipboard()
Returns a pointer to the application global clipboard.
void deleteText(int startOffset, int endOffset)
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
◆ deleteText()
void QAccessibleSimpleEditableTextInterface::deleteText |
( |
int |
startOffset, |
|
|
int |
endOffset |
|
) |
| |
|
virtual |
Implements QAccessibleEditableTextInterface.
Definition at line 292 of file qaccessible2.cpp.
Referenced by cutText().
295 txt.
remove(startOffset, endOffset - startOffset);
The QString class provides a Unicode character string.
QAccessibleInterface * iface
virtual QString text(Text t, int child) const =0
Returns the value of the text property t of the object, or of the object's child if child is not 0...
QString & remove(int i, int len)
Removes n characters from the string, starting at the given position index, and returns a reference t...
virtual void setText(Text t, int child, const QString &text)=0
Sets the text property t of the object, or of the object's child if child is not 0, to text.
◆ insertText()
void QAccessibleSimpleEditableTextInterface::insertText |
( |
int |
offset, |
|
|
const QString & |
text |
|
) |
| |
|
virtual |
Implements QAccessibleEditableTextInterface.
Definition at line 299 of file qaccessible2.cpp.
The QString class provides a Unicode character string.
QAccessibleInterface * iface
virtual QString text(Text t, int child) const =0
Returns the value of the text property t of the object, or of the object's child if child is not 0...
QString & insert(int i, QChar c)
virtual void setText(Text t, int child, const QString &text)=0
Sets the text property t of the object, or of the object's child if child is not 0, to text.
◆ pasteText()
void QAccessibleSimpleEditableTextInterface::pasteText |
( |
int |
offset | ) |
|
|
virtual |
Implements QAccessibleEditableTextInterface.
Definition at line 318 of file qaccessible2.cpp.
320 #ifdef QT_NO_CLIPBOARD The QString class provides a Unicode character string.
QAccessibleInterface * iface
static QClipboard * clipboard()
Returns a pointer to the application global clipboard.
virtual QString text(Text t, int child) const =0
Returns the value of the text property t of the object, or of the object's child if child is not 0...
QString & insert(int i, QChar c)
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
virtual void setText(Text t, int child, const QString &text)=0
Sets the text property t of the object, or of the object's child if child is not 0, to text.
◆ replaceText()
void QAccessibleSimpleEditableTextInterface::replaceText |
( |
int |
startOffset, |
|
|
int |
endOffset, |
|
|
const QString & |
text |
|
) |
| |
|
virtual |
Implements QAccessibleEditableTextInterface.
Definition at line 329 of file qaccessible2.cpp.
332 txt.
replace(startOffset, endOffset - startOffset, text);
QString & replace(int i, int len, QChar after)
The QString class provides a Unicode character string.
QAccessibleInterface * iface
virtual QString text(Text t, int child) const =0
Returns the value of the text property t of the object, or of the object's child if child is not 0...
virtual void setText(Text t, int child, const QString &text)=0
Sets the text property t of the object, or of the object's child if child is not 0, to text.
◆ setAttributes()
void QAccessibleSimpleEditableTextInterface::setAttributes |
( |
int |
, |
|
|
int |
, |
|
|
const QString & |
|
|
) |
| |
|
inlinevirtual |
◆ iface
The documentation for this class was generated from the following files: