Mercurial > libervia-desktop-kivy
comparison cagou/plugins/plugin_wid_contact_list.py @ 387:d61bbbac4160
cagou widget: don't add header_input systematically anymore:
header input is often used in CagouWidget for e.g. filtering, but not always, and when it
is not, it is weird and confusing to have a TextInput which doesn't do nothing. To avoid
that, a new `use_header_input` bool attribute (set to False by default) has been added to
CagouWidget.
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 04 Feb 2020 20:47:17 +0100 |
parents | 1da3c379205b |
children | f7476818f9fb |
comparison
equal
deleted
inserted
replaced
386:415de998b91d | 387:d61bbbac4160 |
---|---|
117 | 117 |
118 class ContactList(QuickContactList, cagou_widget.CagouWidget, FilterBehavior, | 118 class ContactList(QuickContactList, cagou_widget.CagouWidget, FilterBehavior, |
119 TouchMenuBehaviour): | 119 TouchMenuBehaviour): |
120 float_layout = properties.ObjectProperty() | 120 float_layout = properties.ObjectProperty() |
121 layout = properties.ObjectProperty() | 121 layout = properties.ObjectProperty() |
122 use_header_input = True | |
122 | 123 |
123 def __init__(self, host, target, profiles): | 124 def __init__(self, host, target, profiles): |
124 QuickContactList.__init__(self, G.host, profiles) | 125 QuickContactList.__init__(self, G.host, profiles) |
125 cagou_widget.CagouWidget.__init__(self) | 126 cagou_widget.CagouWidget.__init__(self) |
126 FilterBehavior.__init__(self) | 127 FilterBehavior.__init__(self) |