Public bug reported:

The UbuntuListView example on wily contains 2 examples:
- the first one exercise the 1.3 Ubuntu SDK version (import Ubuntu.Components 
1.3)
- the second one exercise the 1.2 Ubuntu SDK version. (import Ubuntu.Components 
1.2)

This is confusing to the developers, only one version import should be
shown (another bug is opened so that it matches the imports version on
which you press F1).

In addition to this, the second example doesn't work:
import QtQuick 2.4
import Ubuntu.Components 1.2
import Ubuntu.Components.ListItems 1.0

UbuntuListView {
    width: units.gu(40)
    height: units.gu(71)
    model: XmlListModel {
        source: "http://feeds.reuters.com/reuters/topNews";
        query: "/rss/channel/item"
        XmlRole { name: "title"; query: "title/string()" }
    }
    // let refresh control know when the refresh gets completed
    pullToRefresh {
        enable: true
        refreshing: model.status === XmlListModel.Loading
        onRefresh: model.reload()
    }
    delegate: ListItem.Standard {
        width: ListView.view.width
        height: units.gu(5)
        text: modelData
        onClicked: {
            ListView.view.model.reload();
        }
    }
}

It misses some import for QtQuick.XmlListModel 2.0. When fixing this, running 
it in wily, it then triggers an error: 
ListItem.Standard - ListItem is not a namespace.

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: devexp

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

Title:
  Example for UbuntuListView mix versions and doesn't work

Status in ubuntu-ui-toolkit package in Ubuntu:
  New

Bug description:
  The UbuntuListView example on wily contains 2 examples:
  - the first one exercise the 1.3 Ubuntu SDK version (import Ubuntu.Components 
1.3)
  - the second one exercise the 1.2 Ubuntu SDK version. (import 
Ubuntu.Components 1.2)

  This is confusing to the developers, only one version import should be
  shown (another bug is opened so that it matches the imports version on
  which you press F1).

  In addition to this, the second example doesn't work:
  import QtQuick 2.4
  import Ubuntu.Components 1.2
  import Ubuntu.Components.ListItems 1.0

  UbuntuListView {
      width: units.gu(40)
      height: units.gu(71)
      model: XmlListModel {
          source: "http://feeds.reuters.com/reuters/topNews";
          query: "/rss/channel/item"
          XmlRole { name: "title"; query: "title/string()" }
      }
      // let refresh control know when the refresh gets completed
      pullToRefresh {
          enable: true
          refreshing: model.status === XmlListModel.Loading
          onRefresh: model.reload()
      }
      delegate: ListItem.Standard {
          width: ListView.view.width
          height: units.gu(5)
          text: modelData
          onClicked: {
              ListView.view.model.reload();
          }
      }
  }

  It misses some import for QtQuick.XmlListModel 2.0. When fixing this, running 
it in wily, it then triggers an error: 
  ListItem.Standard - ListItem is not a namespace.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1486941/+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