OptionSelectorDelegate: Renders empty if enabled: false

Bug #1577359 reported by Antti Kaijanmäki
6
This bug affects 1 person
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
        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.

Changed in canonical-devices-system-image:
assignee: nobody → Zoltan Balogh (bzoltan)
status: New → Confirmed
Cris Dywan (kalikiana)
Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: nobody → Christian Dywan (kalikiana)
Revision history for this message
Cris Dywan (kalikiana) wrote :

I tried the example on a Xenail Unity7 desktop and it seems to work just fine, the disabled items are indeed grayed out.

Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Incomplete
Revision history for this message
Antti Kaijanmäki (kaijanmaki) wrote :

hmm.. did you ran the code with qmlscene? I need to try again as well, then.

Cris Dywan (kalikiana)
Changed in ubuntu-ui-toolkit (Ubuntu):
status: Incomplete → New
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.