← Back to team overview

touch-packages team mailing list archive

[Bug 1485979] Re: Wrong error message is dumped

 

*** This bug is a duplicate of bug 1467851 ***
    https://bugs.launchpad.net/bugs/1467851

** This bug has been marked a duplicate of bug 1467851
   Remove warning on deprecated theme for versions < 1.3

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in
Ubuntu.
https://bugs.launchpad.net/bugs/1485979

Title:
  Wrong error message is dumped

Status in ubuntu-ui-toolkit package in Ubuntu:
  New

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 manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1485979/+subscriptions