Cannot assign to non-existent sensingMargins "sensingMargins"

Bug #1557802 reported by XiaoGuo, Liu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Components.AbstractButton/

on the page, when I copy the code snippet and make an example for it:

import QtQuick 2.4
import Ubuntu.Components 1.3

/*!
    \brief MainView with a Label and Button elements.
*/

MainView {
    // objectName for functional testing purposes (autopilot-qt5)
    objectName: "mainView"

    // Note! applicationName needs to match the "name" field of the click manifest
    applicationName: "abstractbutton.liu-xiao-guo"

    width: units.gu(100)
    height: units.gu(75)

    Page {
        title: i18n.tr("abstractbutton")

        AbstractButton {
            width: units.gu(2)
            height: units.gu(2)
            sensingMargins {
                left: units.gu(1)
                top: units.gu(1)
                bottom: units.gu(1)
                right: units.gu(10)
            }
        }
    }
}

running on the phone results in:

qrc:///Main.qml:31:13: Cannot assign to non-existent sensingMargins "sensingMargins"

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

Are you sure you have the version in your phone which has the change?

Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Incomplete
Revision history for this message
Andrea Bernabei (faenil) wrote :

What device and uitk version?

Please post the output of
"apt-cache policy qtdeclarative5-ubuntu-ui-toolkit-plugin" run on your phone, either via the terminal app or phablet-shell

Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote :

inablet@ubuntu-phablet:~$ apt-cache policy qtdeclarative5-ubuntu-ui-toolkit-plug
qtdeclarative5-ubuntu-ui-toolkit-plugin:
  Installed: 1.3.1795+15.04.20160106-0ubuntu1
  Candidate: 1.3.1795+15.04.20160106-0ubuntu1
  Version table:
 *** 1.3.1795+15.04.20160106-0ubuntu1 0
        100 /var/lib/dpkg/status

Revision history for this message
Andrea Bernabei (faenil) wrote :

Yeah, that is too old.
The sensingArea property was added in revision 1866
http://bazaar.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/staging/revision/1866
while your phone is running version 1795

Please note that the -dev documentation is generated from the packages available in the rc-proposed channel, so you have to run the latest OS on rc-proposed channel to make sure you get the UITK version that the -dev documentation refers to.

Changed in ubuntu-ui-toolkit (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote :

It would be good to highlight those in the API document. Otherwise, a developer never knows. It would be good to add something like "

since xxxx

Revision history for this message
Andrea Bernabei (faenil) wrote :

we have "Since 1.3", the problem is 1.3 is not final yet, so it keeps changing

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.