← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1577359] Re: OptionSelectorDelegate: Renders empty if enabled: false

 

** Also affects: canonical-devices-system-image
   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 Canonical System Image:
  New
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/canonical-devices-system-image/+bug/1577359/+subscriptions


References