← Back to team overview

touch-packages team mailing list archive

[Bug 1269019] Re: Defining OptionSelectorDelegate outside of OptionSelector gives errors

 

** Changed in: ubuntu-ui-toolkit (Ubuntu)
   Importance: Undecided => Medium

** Changed in: ubuntu-ui-toolkit (Ubuntu)
       Status: New => Confirmed

-- 
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/1269019

Title:
  Defining OptionSelectorDelegate outside of OptionSelector gives errors

Status in Ubuntu UI Toolkit:
  Confirmed
Status in “ubuntu-ui-toolkit” package in Ubuntu:
  Confirmed

Bug description:
  Running this QML program gives a bunch of errors:

  import QtQuick 2.0-
  import Ubuntu.Components 0.1

  MainView {
      width: 400
      height: 400

      OptionSelectorDelegate {
          id: testDelegate

          text: "TEST"
          subText: "test"
          constrainImage: true
      }
  }

  
  The problem is that the delegate assumes there is a listView property available, while it is not. The delegate would have to check for that property (and initialize when it is changed). Here are the errors:

  tim@ideapad:~/dev/ubuntu-ui-toolkit/fix-1242647/tests/unit_x11/tst_components$ qmlscene tos.qml 
  unity::action::ActionManager::ActionManager(QObject*):
  	Could not determine application identifier. HUD will not work properly.
  	Provide your application identifier in $APP_ID environment variable.
  file:///home/tim/dev/ubuntu-ui-toolkit/fix-1242647/modules/Ubuntu/Components/OptionSelectorDelegate.qml:220:9: QML Connections: Cannot assign to non-existent property "onCurrentlyExpandedChanged"
  file:///home/tim/dev/ubuntu-ui-toolkit/fix-1242647/modules/Ubuntu/Components/OptionSelectorDelegate.qml:178: TypeError: Cannot read property 'multiSelection' of null
  file:///home/tim/dev/ubuntu-ui-toolkit/fix-1242647/modules/Ubuntu/Components/OptionSelectorDelegate.qml:114: TypeError: Cannot read property 'container' of null
  file:///home/tim/dev/ubuntu-ui-toolkit/fix-1242647/modules/Ubuntu/Components/OptionSelectorDelegate.qml:221: TypeError: Cannot read property 'container' of null
  file:///home/tim/dev/ubuntu-ui-toolkit/fix-1242647/modules/Ubuntu/Components/OptionSelectorDelegate.qml:262: TypeError: Cannot read property 'container' of null
  file:///home/tim/dev/ubuntu-ui-toolkit/fix-1242647/modules/Ubuntu/Components/OptionSelectorDelegate.qml:294: TypeError: Cannot read property 'container' of null
  file:///home/tim/dev/ubuntu-ui-toolkit/fix-1242647/modules/Ubuntu/Components/OptionSelectorDelegate.qml:325: TypeError: Cannot read property 'container' of null
  file:///home/tim/dev/ubuntu-ui-toolkit/fix-1242647/modules/Ubuntu/Components/OptionSelectorDelegate.qml:143: ReferenceError: index is not defined
  file:///home/tim/dev/ubuntu-ui-toolkit/fix-1242647/modules/Ubuntu/Components/OptionSelectorDelegate.qml:403: TypeError: Cannot read property 'expanded' of null
  file:///home/tim/dev/ubuntu-ui-toolkit/fix-1242647/modules/Ubuntu/Components/OptionSelectorDelegate.qml:393: TypeError: Cannot read property 'expanded' of null
  file:///home/tim/dev/ubuntu-ui-toolkit/fix-1242647/modules/Ubuntu/Components/OptionSelectorDelegate.qml:120: TypeError: Cannot read property 'container' of null
  file:///home/tim/dev/ubuntu-ui-toolkit/fix-1242647/modules/Ubuntu/Components/OptionSelectorDelegate.qml:114: TypeError: Cannot read property 'container' of null
  file:///home/tim/dev/ubuntu-ui-toolkit/fix-1242647/modules/Ubuntu/Components/OptionSelectorDelegate.qml:120: TypeError: Cannot read property 'container' of null
  file:///home/tim/dev/ubuntu-ui-toolkit/fix-1242647/modules/Ubuntu/Components/OptionSelectorDelegate.qml:143: ReferenceError: index is not defined
  file:///home/tim/dev/ubuntu-ui-toolkit/fix-1242647/modules/Ubuntu/Components/OptionSelectorDelegate.qml:221: TypeError: Cannot read property 'container' of null
  file:///home/tim/dev/ubuntu-ui-toolkit/fix-1242647/modules/Ubuntu/Components/OptionSelectorDelegate.qml:262: TypeError: Cannot read property 'container' of null
  file:///home/tim/dev/ubuntu-ui-toolkit/fix-1242647/modules/Ubuntu/Components/OptionSelectorDelegate.qml:294: TypeError: Cannot read property 'container' of null
  file:///home/tim/dev/ubuntu-ui-toolkit/fix-1242647/modules/Ubuntu/Components/OptionSelectorDelegate.qml:325: TypeError: Cannot read property 'container' of null
  file:///home/tim/dev/ubuntu-ui-toolkit/fix-1242647/modules/Ubuntu/Components/OptionSelectorDelegate.qml:393: TypeError: Cannot read property 'expanded' of null
  file:///home/tim/dev/ubuntu-ui-toolkit/fix-1242647/modules/Ubuntu/Components/OptionSelectorDelegate.qml:403: TypeError: Cannot read property 'expanded' of null
  tim@ideapad:~/dev/ubuntu-ui-toolkit/fix-1242647/tests/unit_x11/tst_components$

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1269019/+subscriptions