Not possible to set a page title and hide the header

Bug #1308343 reported by David Planella
This bug report is a duplicate of:  Bug #1336791: [sdk] Header behavior modes. Edit Remove
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu UI Toolkit
Confirmed
High
Tim Peeters

Bug Description

For the use case of setting the Calculator's app title to a readable name on the desktop instead of the app's id, we set the app's main Page's title. However, that made the Page's header show up, which is undesired for the Calculator app.

The documentation seems to imply that setting the flickable property of the Page to null hides the header, but that does not seem to be the case.

So here's a request to be able to hide the header when the Page title is set.

Tags: header
Cris Dywan (kalikiana)
Changed in ubuntu-ui-toolkit:
status: New → Confirmed
Revision history for this message
Olivier Tilloy (osomon) wrote :

Another way of setting the window title in QML is to embed the MainView inside a top-level Window element. For an example, see http://bazaar.launchpad.net/~phablet-team/webbrowser-app/trunk/view/head:/src/app/webbrowser/webbrowser-app.qml (the Browser element is a MainView).

Revision history for this message
David Planella (dpm) wrote : Re: [Bug 1308343] Re: Not possible to set a page title and hide the header

Thanks Olivier,

I forgot to say that we also use a workaround for Calendar and Calculator
to get this working, as recommended by kalikiana:

import QtQuick.Window 2.0

// Workaround for bug #1308343
property bool windowActive: typeof window != 'undefined'
onWindowActiveChanged: window.title = i18n.tr("Calculator")

On Wed, Apr 16, 2014 at 9:30 AM, Olivier Tilloy <
<email address hidden>> wrote:

> Another way of setting the window title in QML is to embed the MainView
> inside a top-level Window element. For an example, see
> http://bazaar.launchpad.net/~phablet-team/webbrowser-
> app/trunk/view/head:/src/app/webbrowser/webbrowser-app.qml (the Browser
> element is a MainView).
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1308343
>
> Title:
> Not possible to set a page title and hide the header
>
> Status in Ubuntu UI Toolkit:
> Confirmed
>
> Bug description:
> For the use case of setting the Calculator's app title to a readable
> name on the desktop instead of the app's id, we set the app's main
> Page's title. However, that made the Page's header show up, which is
> undesired for the Calculator app.
>
> The documentation seems to imply that setting the flickable property
> of the Page to null hides the header, but that does not seem to be the
> case.
>
> So here's a request to be able to hide the header when the Page title
> is set.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1308343/+subscriptions
>

Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
importance: Undecided → High
assignee: nobody → Tim Peeters (tpeeters)
Tim Peeters (tpeeters)
tags: added: header
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.