diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2015-12-07 18:15:07 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-12-09 09:36:00 +0000 |
commit | c5e972eb87c5dbdbc0fc2ff15759ff0adaea8dfa (patch) | |
tree | 083ee3632d17ccfc6898913b09fe8c7bcbb2bc1c /src/plugins/platforms | |
parent | 52e994c8a37e9e9b84f32e2c75b8219242481384 (diff) |
QFileDialog: Call reject() on Key_Escape even when itemview has focus
Replace hide() call (present in itemViewKeyboardEvent since Qt 4.5)
by reject(). Add signal spy to existing test function.
QDialog doc states that reject() will always be called on Key_Escape.
hide() is not enough: it makes exec() terminate and return the proper
value, but the signals finished(int) and rejected() will not be sent.
Task-number: QTBUG-7690
Change-Id: Ica4ae2843574478c5b9a7672f871f3ef3f16f3c9
Done-with: Jan Blumschein <jan@jan-blumschein.de>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Diffstat (limited to 'src/plugins/platforms')
0 files changed, 0 insertions, 0 deletions