Fix undo and redo in QLineEdit when in password mode
authorJani Honkonen <jani.honkonen@digia.com>
Mon, 6 Aug 2012 10:18:48 +0000 (13:18 +0300)
committerQt by Nokia <qt-info@nokia.com>
Wed, 15 Aug 2012 09:38:37 +0000 (11:38 +0200)
commit121062d8848986dcfaf421388a5603b3b48a1e58
tree08d92b7e0cb90d6bd49b868d75df8f394913810e
parentd19589b90adca7130129b59b662e515226a943e1
Fix undo and redo in QLineEdit when in password mode

There are some security issues with undo/redo. User should not be
able to get the erased password back in any situation. Therefore
redo must be disabled completely and undo is limited only for erasing
previously entered text.

Task-number: QTBUG-14226
Change-Id: I2b38aca84adbad1c14db76b56ad6303d56b35b4d
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
src/widgets/widgets/qwidgetlinecontrol.cpp
src/widgets/widgets/qwidgetlinecontrol_p.h
tests/auto/widgets/widgets/qlineedit/tst_qlineedit.cpp