diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2011-12-01 10:40:27 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2011-12-01 10:40:27 +0100 |
commit | 728e74df239bac0f61faea062bb5a45340ee6d24 (patch) | |
tree | b7bc95d9e0442f51e1ad688217d64435c90f6b7d /client/widgets | |
parent | 45336cbecb6eff3317a365f271dc548c297f4ffa (diff) |
Force focus on combobox in altcombobox in order to avoid the inner widget gaining focus even though it is hidden.
Diffstat (limited to 'client/widgets')
-rw-r--r-- | client/widgets/altcombobox.cc | 6 | ||||
-rw-r--r-- | client/widgets/altcombobox.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/client/widgets/altcombobox.cc b/client/widgets/altcombobox.cc index 9956fff..082601a 100644 --- a/client/widgets/altcombobox.cc +++ b/client/widgets/altcombobox.cc @@ -107,6 +107,12 @@ AltComboBox::~AltComboBox() { } +bool AltComboBox::setKeyboardFocus() +{ + combobox->setFocus(); + return true; +} + QComboBox *AltComboBox::qcombobox() { return combobox; diff --git a/client/widgets/altcombobox.h b/client/widgets/altcombobox.h index e6a21d7..b0fb61c 100644 --- a/client/widgets/altcombobox.h +++ b/client/widgets/altcombobox.h @@ -94,6 +94,8 @@ public: QComboBox *qcombobox(); + bool setKeyboardFocus(); + public slots: void comboChanged(); void onChildChange(); |