KComboBox: Reuse the existing completion object on new line edit
ClosedPublic

Authored by mwolff on Sep 24 2017, 11:48 AM.

Details

Summary

When a KComboBox was created and a completion object configured on
it, that setting was lost once the combo box was set to be editable.
To support this workflow and make the API easier to use, we now keep
the previous completion object alive and set it on the new line edit.

Diff Detail

Repository
R284 KCompletion
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
mwolff created this revision.Sep 24 2017, 11:48 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptSep 24 2017, 11:48 AM
Restricted Application added a subscriber: Frameworks. · View Herald Transcript
dfaure accepted this revision.Sep 24 2017, 6:40 PM

Just to be sure, your unittest could also test the case of setEditable(false).

This revision is now accepted and ready to land.Sep 24 2017, 6:40 PM
This revision was automatically updated to reflect the committed changes.

Just to be sure, your unittest could also test the case of setEditable(false).

What should it test then? if it's not editable, there is no line edit, and thus no completion object?