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
Touch seeded packages, 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/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to