raring has seen the end of its life and is no longer receiving any
updates. Marking the raring task for this ticket as "Won't Fix".
** Changed in: ubuntu-ui-toolkit (Ubuntu Raring)
Status: New => Won't Fix
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in
Ubuntu.
https://bugs.launchpad.net/bugs/1166982
Title:
Disabling the control in a ListItem should also disable clicks on the
ListItem itself
Status in Ubuntu UI Toolkit:
Fix Released
Status in Ubuntu UX bugs:
Fix Released
Status in ubuntu-ui-toolkit package in Ubuntu:
Fix Released
Status in ubuntu-ui-toolkit source package in Raring:
Won't Fix
Bug description:
import QtQuick 2.0
import Ubuntu.Components 0.1
import Ubuntu.Components.ListItems 0.1 as ListItem
MainView {
width: units.gu(40)
height: units.gu(60)
ListView {
anchors.fill: parent
model: 5
delegate: ListItem.Standard {
text: "Clicking shouldn't change the checkbox"
control: CheckBox {
enabled: false
checked: true
}
}
}
}
Here, the CheckBox is disabled. However, if you click the ListItem, it
still toggles the CheckBox even though the CheckBox is disabled. A
ListItem with a disabled control should stop forwarding clicks to the
control.
Note: we don't want to enabled:false the ListItem itself. That makes
the ListItem have the disabled appearance. The goal here is to have
the ListItem look normal but make it clear that you can't toggle it,
not to make the ListItem itself look disabled.
The use case is for friends-app, when posting a new status update. If you
have multiple accounts, you get a list of them with checkboxes below the
posting textarea, so you can select where it posts to. If you have only one
account, you should not be able to uncheck it (that would mean that you are
posting to nowhere).
However, if you enabled:false the whole ListItem, then it looks like you are
not posting to that account at all (because it looks disabled), which is not
the case. What it should look like is that you are posting to that account and
you can't turn it off, hence the requirement to disable the checkbox, not the
whole listitem. Disabling the checkbox gives the correct appearance, but
clicking the listitem still, incorrectly, toggles the disabled checkbox.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1166982/+subscriptions
--
Mailing list: https://launchpad.net/~touch-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp