Public bug reported:
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
** Affects: qtcreator-plugin-ubuntu (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1485980
Title:
Wrong error message is dumped
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtcreator-plugin-ubuntu/+bug/1485980/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs