Comment 0 for bug 1248646

Revision history for this message
Iain Lane (laney) wrote : API break: ItemSelector.enabled changed to read-only

system-settings makes use of ListItem.ItemSelector.enabled in a few places. In

  https://code.launchpad.net/~nicolas-doffay/ubuntu-ui-toolkit/selectors-multi-selection

this was changed to a read-only property and 'alwaysExpanded' provided to covers some of the use-cases for setting expanded before.

This is an API break which IMO shouldn't have happened. Could it be fixed?

It breaks a lot of ubuntu-system-settings, for example:

laney@raleigh> system-settings cellular
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No space left on device
unity::action::ActionManager::ActionManager(QObject*):
 Could not determine application identifier. HUD will not work properly.
 Provide your application identifier in $APP_ID environment variable.
UCUriHandler: Empty "APP_ID" environment variable, ignoring.
file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/PageWrapperUtils.js:42: Error: Error while loading page: file:///usr/share/ubuntu/settings/system/qml-plugins/cellular/PageComponent.qml:65 Invalid property assignment: "expanded" is a read-only property

file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/ListItems/SingleControl.qml:59: Unable to assign [undefined] to bool