ubuntu-sdk-bugs team mailing list archive
-
ubuntu-sdk-bugs team
-
Mailing list archive
-
Message #05856
[Bug 1513003] Re: AdaptivePageLayout doesn't allow hiding a Page header
With the new PageHeader, it is possible to show/hide the header for each
column individually. See the introduction here:
https://developer.ubuntu.com/en/blog/2016/02/24/pageheader-tutorial/
Example code to show/hide the header:
import QtQuick 2.4
import Ubuntu.Components 1.3
MainView {
width: units.gu(100)
height: units.gu(70)
AdaptivePageLayout {
id: apl
anchors.fill: parent
primaryPage: page0
Page {
id: page0
header: PageHeader { title: "aloha" }
Button {
anchors.centerIn: parent
text: "add page -->"
onClicked: apl.addPageToNextColumn(page0, page1)
}
}
Page {
id: page1
header: PageHeader {
title: "You can hide me"
exposed: false
}
Switch {
id: exposedSwitch
anchors.centerIn: parent
checked: page1.header.exposed
onTriggered: page1.header.exposed = !page1.header.exposed
}
Label {
anchors {
right: exposedSwitch.left
verticalCenter: exposedSwitch.verticalCenter
}
text: "Show header: "
}
}
}
}
** Changed in: ubuntu-ui-toolkit (Ubuntu)
Status: Confirmed => Fix Released
--
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/1513003
Title:
AdaptivePageLayout doesn't allow hiding a Page header
Status in ubuntu-ui-toolkit package in Ubuntu:
Fix Released
Bug description:
Trying to port reminders-app to use an APL instead of my home-brew
multicolumn thing, I noticed that it's no longer possible to hide a
Page's header using:
head {
visible: false
locked: true
}
This was hiding the page header successfully with a PageStack, however, inside an AdaptivePageLayout it doesn't work any more.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1513003/+subscriptions
References