Change-Id: I0eda4c29235035824105992f3db2d9a0c06dc6b5
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
void QAccessibleQuickItem::selection(int selectionIndex, int *startOffset, int *endOffset) const
{
- *startOffset = item()->property("selectionStart").toInt();
- *endOffset = item()->property("selectionEnd").toInt();
+ if (selectionIndex == 0) {
+ *startOffset = item()->property("selectionStart").toInt();
+ *endOffset = item()->property("selectionEnd").toInt();
+ } else {
+ *startOffset = 0;
+ *endOffset = 0;
+ }
}
int QAccessibleQuickItem::selectionCount() const