KCombox focus
Dawit A.
adawit at kde.org
Thu Sep 18 17:57:36 BST 2003
On Thursday 18 September 2003 11:42, Benoit Walter wrote:
> As the number of KComboBoxes is increasing in the control center
> (background images, styles and window decorations), I think it would make
> sense to give focus to the widget after clicking on it. Then it will be
> much easier to try different entries using the keyboard (arrows).
>
> Would it be OK to change kdelibs/kdeui/kcombobox.cpp, void init() and add:
> setFocusPolicy( StrongFocus ); ?
No. Please read the documentation for QCombobox:
If the combobox is not editable then it has a default focusPolicy() of
TabFocus, i.e. it will not grab focus if clicked. This differs from both
Windows and Motif. If the combobox is editable then it has a default
focusPolicy() of StrongFocus, i.e. it will grab focus if clicked.
--
Regards,
Dawit A.
"Preach what you practice, practice what you preach"
More information about the kde-core-devel
mailing list