ListItem "icon: Rectangle {}" stopped working since it got deprecated

Bug #1256024 reported by Sebastien Bacher
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Won't Fix
Medium
Florian Boucault

Bug Description

The system settings code is using a custom component (basically a Rectangle with a Label) as an icon,
http://bazaar.launchpad.net/~system-settings-touch/ubuntu-system-settings/trunk/view/head:/plugins/language/KeyboardLayouts.qml#L48

That code stopped working in trusty with the recent changes (http://bazaar.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/trunk/revision/858), the icon is not displayed in the UI

Those warning are displayed on the command line:
file:///usr/lib/i386-linux-gnu/qt5/qml/Ubuntu/Components/ListItems/Standard.qml:252: Error: Cannot assign QObject* to QUrl
WARNING: ListItems.Standard.icon is DEPRECATED. Use iconName and iconSource instead.

We are looking at porting our code (bug #1256017), I'm still opening that, as a toolkit bug, since ideally users of the old property should keep working during the transition

description: updated
description: updated
Changed in ubuntu-ui-toolkit:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Florian Boucault (fboucault)
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

This has also broken my app, Stackbrowser. I had been using an UbuntuShape with a label as the icon. I didn't notice until now since a new image hadn't been promoted for some time. I don't mind having to create a custom component using ListItem.Base, but obviously I'd rather not.

Will support for this be added back?

Zoltan Balogh (bzoltan)
Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: nobody → Florian Boucault (fboucault)
importance: Undecided → Medium
status: New → Confirmed
Zoltan Balogh (bzoltan)
no longer affects: ubuntu-ui-toolkit
Revision history for this message
Zsombor Egri (zsombi) wrote :

System settings imports 0.1, 1.0 and 1.1 toolkit, and this is not good. We asked developers to switch to import the latest UI toolkit in their apps to get the fixes rolling on, especially that 0.1 version was a development version. QML versioning also played us out badly, and we had to split the sources for the different versions, which mean that some components will not work with different toolkit versions. We do not have maintenance capabilities to support previous versions or deprecated components, especially the ListItems module. It has been decided that the toolkit will not provide any "standard" layouts for list items as design changes may bring us to more deprecation.

Changed in ubuntu-ui-toolkit (Ubuntu):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.