diff options
author | José Millán Soto <fid@gpul.org> | 2011-06-04 16:06:47 (GMT) |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@nokia.com> | 2011-06-10 09:09:08 (GMT) |
commit | 636b7088eb3740800f54a7c1634d3e041e688270 (patch) | |
tree | 418fe566e6e680ed3471f62d737d40982c2b38df /src/plugins | |
parent | 731d843b52b0a0bc387c50c2af37a71f87804f4d (diff) | |
download | Qt-636b7088eb3740800f54a7c1634d3e041e688270.zip Qt-636b7088eb3740800f54a7c1634d3e041e688270.tar.gz Qt-636b7088eb3740800f54a7c1634d3e041e688270.tar.bz2 |
Do not expose text when echo mode is not Normal.
Reviewed-by: Frederik Gladhorn
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/accessible/widgets/simplewidgets.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/accessible/widgets/simplewidgets.cpp b/src/plugins/accessible/widgets/simplewidgets.cpp index ac40aef..3b9ccfa 100644 --- a/src/plugins/accessible/widgets/simplewidgets.cpp +++ b/src/plugins/accessible/widgets/simplewidgets.cpp @@ -808,6 +808,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); } |