Wrong error message is dumped

Bug #1485980 reported by XiaoGuo, Liu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtcreator-plugin-ubuntu (Ubuntu)
New
Undecided
Unassigned

Bug Description

In my QML app, I used:

import Ubuntu.Components 1.1

and

                    UbuntuShape {
                        height: parent.width
                        width: height
                        image: Image {
                            id: image
                            source: preview
                            height: parent.width
                            width: height
                            sourceSize.height: height
                            sourceSize.width: width
                            fillMode: Image.PreserveAspectFit
                            smooth: true
                        }
                        Image {
                            id: selectionTick
                            anchors.right: parent.right
                            anchors.top: parent.top
                            width: units.gu(5)
                            height: units.gu(5)
                            visible: curItem.selected && root.pickMode
                            source: "photo-preview-selected-overlay.png"
                        }

                    }

When I tried to run my app, it complained:

file:///opt/click.ubuntu.com/contenthub-exporter.liu-xiao-guo/0.1/Main.qml:276:21: QML UbuntuShape: 'image' is deprecated. Use 'source' instead.

In fact, "image" property exists in Ubuntu.Components 1.1, and it does not exist in Ubuntu.Components 1.2. If I use "source" instead of "image", I have to change to use Ubuntu.Components 1.2. Otherwise, there I cannot run my app since "source" does not exist in the Ubuntu.Components 1.1 at all.

We need to dump the correct warning message according to the Ubuntu.Components version. Otherwise, a developer changes the code, but it may not run in the previous version of the phones. In some case, it just simply causes some confusion.

Best regards,
XiaoGuo

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.