ubuntu-sdk-bugs team mailing list archive
-
ubuntu-sdk-bugs team
-
Mailing list archive
-
Message #07630
[Bug 1486940] Re: Example for UbuntuListView mix versions and doesn't work
This bug was fixed in the package ubuntu-ui-toolkit -
1.3.2184+17.04.20170306
---------------
ubuntu-ui-toolkit (1.3.2184+17.04.20170306) zesty; urgency=medium
[ Adnane Belmadiaf ]
* Add support for CheckBox label when set
* Add more tests for checkbox. Fixes LP: #1333228, LP: #1442851.
* Make sure we resets partial text input from the input method.
Fixes LP: #1630872.
* Fix ListItem title/subtitle alignment & elide in RTL mode.
Fixes LP: #1665944.
* Fix PageHeader title alignment & elide in RTL mode. Fixes LP: #1665942.
* Fix UbuntuListView docs. Fixes LP: #1486940.
* Add count prop to OptionSelector. Fixes LP: #1341559.
* Replace the hardcoded color with a theme color. Fixes LP: #1664758.
* Fix the import statement for Menu, MenuBar and MenuGroup.
Fixes LP: #1660604.
[ Albert Astals Cid ]
* Fix memory leak in UCStyleHints
* ThinDivider: Anchors can't be null, set to undefined
* No need to call UCUnits::resolveResource to learn we just need to load it
normally because the fact that we already loaded it normally means we need
to load it normally. Fixes LP: #1558663.
* Fix conditional jump or move depends on uninitialised value(s)
[ Christian Dywan ]
* Initialize UCApplication with no side effects. Fixes LP: #1662868.
* Unit test case insensitive FilterBehavior.pattern. Fixes LP: #1663924.
* ListItemPopover delegate should (in)visible as per action Bug 1662220:
[ListItem] Popupmenu shows traces of disabled actions
[ Olivier Tilloy ]
* Check that window is not null before accessing its activeFocusItem property.
Fixes LP: #1664620.
[ Lukáš Tinkl ]
* Unbreak the startup race between unity8/qtmir and UITK trying talk to
content-hub. Fixes LP: #1663106.
-- Zoltán Balogh <zoltan.balogh@xxxxxxxxxxxxx> Mon, 06 Mar 2017
16:04:56 +0000
** Changed in: ubuntu-ui-toolkit (Ubuntu)
Status: Fix Committed => Fix Released
--
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/1486940
Title:
Example for UbuntuListView mix versions and doesn't work
Status in ubuntu-ui-toolkit package in Ubuntu:
Fix Released
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/1486940/+subscriptions
References