Summary: | KComboBox's returnPressed signals not working | ||
---|---|---|---|
Product: | [Frameworks and Libraries] kdelibs | Reporter: | Valerio Pilo <valerio> |
Component: | general | Assignee: | kdelibs bugs <kdelibs-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | Simple kde4 test app |
Description
Valerio Pilo
2008-02-13 15:35:52 UTC
The best would be to attach a test case, a minimum program that proves your point. Created attachment 23561 [details]
Simple kde4 test app
There you go. I've put together a quick CMake app which connects the
returnPressed() signals from KComboBox and the internal QLineEdit. Only the
QLineEdit signal though, causes the label to be updated.
Confirmed, not sure what's wrong in the KComboBox code though... OK, I had a look (since I had written a unittest for this) and I found a workaround: combo_ = new KComboBox( true, this ) makes the combobox work as expected. So the problem is calling setEditable after creation; I'll check why. SVN commit 774759 by dfaure: Fix KComboBox not emitting returnPressed when it was created with rw=false and setEditable(true) afterwards. It really sucks that QComboBox::setLineEdit() is not virtual anymore. BUG: 157785 M +19 -3 tests/klineedit_unittest.cpp M +3 -0 tests/klineedit_unittest.h M +14 -6 widgets/kcombobox.cpp M +12 -0 widgets/kcombobox.h WebSVN link: http://websvn.kde.org/?view=rev&revision=774759 Thanks for your quick and efficient fix! :o never saw a quicker resolution... thank you very much! You're all doing an awesome work ;) |