Warning for the newer theme system should give more clear info to the developers

Bug #1483627 reported by Didier Roche-Tolomelli
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Importing Ubuntu.Components 1.2 in wily (not sure why I didn't noticed it on vivid), triggers a lot of style related warnings, like:

"file:///home/didrocks/work/ubuntu-sdk/splitthebill/splitthebill/components/AddRemoveInt.qml:39:5: QML TextField: Theme.createStyleComponent() is deprecated. Use ThemeSettings instead."

That's nice to get those warnings, however, more practical actions (like why? how to transition) with link reference would be helpful.
I don't know either what to do from here.

Tags: devexp
Revision history for this message
Zsombor Egri (zsombi) wrote :

The problem is that it shouldn't trigger on 1.2, as there it is not deprecated. Unfortunately QML versioning system does not give us any help on detecting the version the component is used in.

Revision history for this message
Cris Dywan (kalikiana) wrote :

The 1.2 aspect of it is bug 1467851 - more specifically here, we should try to make the message more helpful in suggesting what code to change, namely using styleName, which is valid as of 1.3.

Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Confirmed
importance: Undecided → Low
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.