summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2015-03-18 12:56:50 (GMT)
committerKevin Smith <kevin.smith@isode.com>2015-04-04 19:37:18 (GMT)
commita5c0e268421d4350ffdd07b46fd76b454cf48271 (patch)
tree39b7a6167850f4b2ac1f0c7a724fee8b14163cdf /Swift/QtUI/UserSearch/QtSuggestingJIDInput.h
parentfbe7af04050bdf2f57c63300e8b6d74d648d9f09 (diff)
downloadswift-a5c0e268421d4350ffdd07b46fd76b454cf48271.zip
swift-a5c0e268421d4350ffdd07b46fd76b454cf48271.tar.bz2
Fix popup visibility issues in QtSuggestingJIDInput
When hiding the popup after selection of an item via mouse, the focus was given to a widget other then the QtSuggestingJIDInput or its parent dialog. This patch explicitly sets the focus back to the QtSuggestingJIDInput. Hide the potentially open popup when the QtSuggestingJIDInput is hidden. This can happen when the user closes a dialog with a QtSuggestingJIDInput inside of it. Test-Information: Verified described behavior on OS X 10.9.5 and Windows 8. Change-Id: Ic6629e6e626be18a70de159df62cda79dd82ee09
Diffstat (limited to 'Swift/QtUI/UserSearch/QtSuggestingJIDInput.h')
-rw-r--r--Swift/QtUI/UserSearch/QtSuggestingJIDInput.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Swift/QtUI/UserSearch/QtSuggestingJIDInput.h b/Swift/QtUI/UserSearch/QtSuggestingJIDInput.h
index cacb8d2..d5ec45d 100644
--- a/Swift/QtUI/UserSearch/QtSuggestingJIDInput.h
+++ b/Swift/QtUI/UserSearch/QtSuggestingJIDInput.h
@@ -5,7 +5,7 @@
*/
/*
- * Copyright (c) 2014 Isode Limited.
+ * Copyright (c) 2014-2015 Isode Limited.
* All rights reserved.
* See the COPYING file for more information.
*/
@@ -42,6 +42,7 @@ class QtSuggestingJIDInput : public QLineEdit {
protected:
virtual void keyPressEvent(QKeyEvent* event);
+ virtual void hideEvent(QHideEvent* event);
private:
void handleSettingsChanged(const std::string& setting);