OptionSelectorDelegate: Renders empty if enabled: false
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Confirmed
|
Undecided
|
Zoltan Balogh | ||
ubuntu-ui-toolkit (Ubuntu) |
Incomplete
|
Undecided
|
Cris Dywan |
Bug Description
import QtQuick 2.0
import Ubuntu.Components 1.3
Column {
spacing: units.gu(3)
OptionSelector {
text: i18n.tr("Label")
model: customModel
expanded: true
delegate: selectorDelegate
}
Component {
id: selectorDelegate
}
ListModel {
id: customModel
ListElement { name: "Name 1"; description: "Description 1"; isenabled: true }
ListElement { name: "Name 2"; description: "Description 2"; isenabled: false }
ListElement { name: "Name 3"; description: "Description 3"; isenabled: true }
ListElement { name: "Name 4"; description: "Description 4"; isenabled: false }
}
}
====
Above example renders the second and fourth element completely empty.
Expected:
Show the contents of the element grayed out.
Changed in canonical-devices-system-image: | |
assignee: | nobody → Zoltan Balogh (bzoltan) |
status: | New → Confirmed |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | nobody → Christian Dywan (kalikiana) |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | Incomplete → New |
status: | New → Incomplete |
I tried the example on a Xenail Unity7 desktop and it seems to work just fine, the disabled items are indeed grayed out.