← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1566736] [NEW] Tabs documentation page example does not work (Page.tools no longer exists)

 

Public bug reported:

The Tabs documentation page
(https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Components.Tabs/)
contains a primary documentation example that does not work: it uses
Page.tools, which no longer exists.

import QtQuick 2.4
import Ubuntu.Components 1.3
import Ubuntu.Components.ListItems 1.3 as ListItem
MainView {
    width: units.gu(48)
    height: units.gu(60)
    Tabs {
        id: tabs
        Tab {
            title: i18n.tr("Simple page")
            page: Page {
                Label {
                    id: label
                    anchors.centerIn: parent
                    text: "A centered label"
                }
                tools: ToolbarItems {
                    ToolbarButton {
                        text: "action"
                        onTriggered: print("action triggered")
                    }
                }
            }
        }
(snip)

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: Undecided
     Assignee: Tim Peeters (tpeeters)
         Status: New

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

Title:
  Tabs documentation page example does not work (Page.tools no longer
  exists)

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

Bug description:
  The Tabs documentation page
  (https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Components.Tabs/)
  contains a primary documentation example that does not work: it uses
  Page.tools, which no longer exists.

  import QtQuick 2.4
  import Ubuntu.Components 1.3
  import Ubuntu.Components.ListItems 1.3 as ListItem
  MainView {
      width: units.gu(48)
      height: units.gu(60)
      Tabs {
          id: tabs
          Tab {
              title: i18n.tr("Simple page")
              page: Page {
                  Label {
                      id: label
                      anchors.centerIn: parent
                      text: "A centered label"
                  }
                  tools: ToolbarItems {
                      ToolbarButton {
                          text: "action"
                          onTriggered: print("action triggered")
                      }
                  }
              }
          }
  (snip)

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


Follow ups