Do not expose text when echo mode is not Normal.
Reviewed-by: Frederik Gladhorn (cherry picked from commit 636b7088eb3740800f54a7c1634d3e041e688270) Change-Id: I82b2e02af74dc43268d2b6613fe31e2875fd132f Reviewed-on: http://codereview.qt.nokia.com/3038 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
This commit is contained in:
parent
983941da65
commit
4ef4f8f3e1
@ -815,6 +815,10 @@ QString QAccessibleLineEdit::text(int startOffset, int endOffset)
|
||||
{
|
||||
if (startOffset > endOffset)
|
||||
return QString();
|
||||
|
||||
if (lineEdit()->echoMode() != QLineEdit::Normal)
|
||||
return QString();
|
||||
|
||||
return lineEdit()->text().mid(startOffset, endOffset - startOffset);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user