Public bug reported:

On the page:
https://developer.ubuntu.com/api/apps/qml/sdk-15.04.5/Ubuntu.Components.ToolbarButton/,
in the code snippet:

import QtQuick 2.4
import Ubuntu.Components 1.3
MainView {
    width: units.gu(50)
    height: units.gu(80)
    Action {
        id: action1
        text: "action 1"
        iconName: "compose"
        onTriggered: print("one!")
    }
    Page {
        title: "test page"
        Label {
            anchors.centerIn: parent
            text: "Hello, world"
        }
        tools: ToolbarItems {
            // reference to an action:
            ToolbarButton {
                action: action1
            }
            // define the action:
            ToolbarButton {
                action: Action {
                    text: "Second action"
                    iconName: "add"
                    onTriggered: print("two!")
                }
                // override the text of the action:
                text: "action 2"
            }
            // no associated action:
            ToolbarButton {
                iconName: "cancel"
                text: "button"
                onTriggered: print("three!")
            }
        }
    }
}

when running, it complains  Cannot assign to non-existent property
"tools"

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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/1576463

Title:
  Cannot assign to non-existent property "tools"

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

Bug description:
  On the page:
  
https://developer.ubuntu.com/api/apps/qml/sdk-15.04.5/Ubuntu.Components.ToolbarButton/,
  in the code snippet:

  import QtQuick 2.4
  import Ubuntu.Components 1.3
  MainView {
      width: units.gu(50)
      height: units.gu(80)
      Action {
          id: action1
          text: "action 1"
          iconName: "compose"
          onTriggered: print("one!")
      }
      Page {
          title: "test page"
          Label {
              anchors.centerIn: parent
              text: "Hello, world"
          }
          tools: ToolbarItems {
              // reference to an action:
              ToolbarButton {
                  action: action1
              }
              // define the action:
              ToolbarButton {
                  action: Action {
                      text: "Second action"
                      iconName: "add"
                      onTriggered: print("two!")
                  }
                  // override the text of the action:
                  text: "action 2"
              }
              // no associated action:
              ToolbarButton {
                  iconName: "cancel"
                  text: "button"
                  onTriggered: print("three!")
              }
          }
      }
  }

  when running, it complains  Cannot assign to non-existent property
  "tools"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1576463/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to