touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #98912
[Bug 1485979] [NEW] Wrong error message is dumped
You have been subscribed to a public bug:
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: ubuntu-ui-toolkit (Ubuntu)
Importance: Undecided
Status: New
--
Wrong error message is dumped
https://bugs.launchpad.net/bugs/1485979
You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in Ubuntu.