Public bug reported:
import QtQuick 2.0
import Ubuntu.Components 1.3
Column {
spacing: units.gu(3)
OptionSelector {
text: i18n.tr("Label")
model: customModel
expanded: true
colourImage: true
delegate: selectorDelegate
}
Component {
id: selectorDelegate
OptionSelectorDelegate { text: name; subText: description; enabled:
isenabled }
}
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.
** Affects: ubuntu-ui-toolkit (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1577359
Title:
OptionSelectorDelegate: Renders empty if enabled: false
Status in ubuntu-ui-toolkit package in Ubuntu:
New
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
colourImage: true
delegate: selectorDelegate
}
Component {
id: selectorDelegate
OptionSelectorDelegate { text: name; subText: description; enabled:
isenabled }
}
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1577359/+subscriptions
--
Mailing list: https://launchpad.net/~ubuntu-sdk-bugs
Post to : [email protected]
Unsubscribe : https://launchpad.net/~ubuntu-sdk-bugs
More help : https://help.launchpad.net/ListHelp