summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/styles/qstyle
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2015-12-08 20:35:11 +0100
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2015-12-09 19:04:59 +0000
commit872b9b231ef966ce7b2b40785ee92a0d4a8d2851 (patch)
tree9eba2013979f957848f3f6af924966fa64b5430f /tests/auto/widgets/styles/qstyle
parent410aa20f073b5e45e73366773b7d173f840a9cfe (diff)
QLineEdit: fix the shortcut override events on a readonly line edit
When a QLineEdit is readonly there's a discrepancy between key press events and shortcut override events. For instance, presses Ctrl+C copies the text unless there's also a shortcut for the same key sequence. In this case, the shortcut override event is not handled, and no text is copied. Fix it by splitting the handling of shortcut override events between "read only" access (copy, select, etc.), which still makes sense on a read only line edit, and write access (paste, ...) which doesn't. [ChangeLog][Important Behavior Changes][QLineEdit] QLineEdit will now accept certain shortcut override events even if it is read only. Change-Id: Ie5b048259b99a1eff0581129e3ad97f27a88fe86 Task-number: QTBUG-21217 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
Diffstat (limited to 'tests/auto/widgets/styles/qstyle')
0 files changed, 0 insertions, 0 deletions