KCheckComboBox: prefer a width that allows to read the complete lineedit text
AbandonedPublic

Authored by dfaure on Aug 15 2018, 1:42 PM.

Details

Summary

QComboBox's sizeHint is only based on the items in the combo, but if the
text is "Subscription,Items,Collections", we might as well be able to
read all this (assuming there is enough room, which is why this is
sizeHint and not minimumSizeHint)

Test Plan

works well with my akonadiconsole filter-combo for notifications, but I'm not sure where else this is used.

Diff Detail

Repository
R89 PIM: Libraries
Branch
Applications/18.08
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 1875
Build 1893: arc lint + arc unit
dfaure created this revision.Aug 15 2018, 1:42 PM
Restricted Application added a project: KDE PIM. · View Herald TranscriptAug 15 2018, 1:42 PM
Restricted Application edited subscribers, added: kde-pim; removed: KDE PIM. · View Herald Transcript
dfaure requested review of this revision.Aug 15 2018, 1:42 PM
dfaure abandoned this revision.Aug 15 2018, 4:35 PM

Didn't work with longer texts, QLineEdit's sizeHint is for 17 chars only, too much trouble to implement correctly, I pushed a simpler solution to akonadiconsole.