Page header with no title does not have a back button
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | ubuntu-ui-toolkit (Ubuntu) |
High
|
Tim Peeters | ||
| | Vivid |
Undecided
|
Unassigned | ||
Bug Description
When pushing a page which does not have a title in it, the header does not have a back button therefore the user has no navigation.
This happens if there is no title property set or it is set but with an empty string.
This is occurring in certain applications that define the title dynamically and the content is occasionally blank.
This sample illustrates:
import QtQuick 2.0
import Ubuntu.Components 1.1
import Ubuntu.
MainView {
width: units.gu(48)
height: units.gu(60)
useDeprecat
PageStack {
id: pageStack
Page {
id: page0
title: i18n.tr("Root page")
Column {
}
}
}
Page {
id: page1
id: rectangle
}
}
}
}
}
Related branches
- PS Jenkins bot: Approve (continuous-integration) on 2015-04-02
- Zsombor Egri (community): Approve on 2015-03-30
-
Diff: 1300 lines (+680/-256)16 files modifiedcomponents.api (+5/-1)
modules/Ubuntu/Components/AppHeader.qml (+103/-15)
modules/Ubuntu/Components/MainView.qml (+2/-1)
modules/Ubuntu/Components/MainView12.qml (+9/-4)
modules/Ubuntu/Components/Page10.qml (+1/-1)
modules/Ubuntu/Components/Page11.qml (+5/-3)
modules/Ubuntu/Components/PageHeadConfiguration.qdoc (+202/-0)
modules/Ubuntu/Components/PageHeadConfiguration11.qml (+3/-155)
modules/Ubuntu/Components/PageHeadConfiguration13.qml (+30/-0)
modules/Ubuntu/Components/Tabs.qml (+4/-1)
modules/Ubuntu/Components/qmldir (+2/-1)
modules/Ubuntu/Test/UbuntuTestCase.qml (+3/-4)
tests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_header.py (+4/-1)
tests/resources/header/lockedToolbar.deprecated.qml (+0/-52)
tests/unit_x11/tst_components/tst_header_visible.qml (+288/-0)
tests/unit_x11/tst_components/tst_page13.qml (+19/-17)
| Changed in ubuntu-ui-toolkit (Ubuntu): | |
| status: | New → In Progress |
| tags: | added: header |
| Tim Peeters (tpeeters) wrote : | #1 |
| Tim Peeters (tpeeters) wrote : | #2 |
This is a tricky bug, as some apps may set the title to "" in order to hide the header.
| Launchpad Janitor (janitor) wrote : | #3 |
This bug was fixed in the package ubuntu-ui-toolkit - 1.3.1510+
---------------
ubuntu-ui-toolkit (1.3.1510+
[ Loïc Molinari ]
* Set QSGNode debug description on the shape-based nodes to ease renderer
debugging. Fixes LP: #1437270
* Ensured QSGLayer-based source textures (like ShaderEffectSource) are
updated before rendering. Fixes LP: #1447495
[ Tim Peeters ]
* Update sections test program.
* Document the correct version when Page.head.visible and Page.head.locked
were added.
* Revert to use the old header in trunk.
* Introduce the new ActionBar component.
* Restore moving property on AppHeader 1.2.
[ Zsombor Egri ]
* Provide versioning for theme loading. Each toolkit must be released with a
well defined system theme version, and theme modules must have the same
version as the toolkit. Fixes LP: #1447113
* Fix import versions in entire UITK and examples. Move example code under
1.3 folder. Fixes LP: #1447113
* Separate 1.2 from 1.3 versions in all Ubuntu.Component modules.
Fixes LP: #1447113
[ Zoltan Balogh ]
* Fix header CPO for 1.2 without moving attribute. Let the header CPO try
both old and new buttons.
[ Christian Dywan ]
* Add version subfolder to benchmark test paths.
* Only show handlers if text isn't empty. Fixes LP: #1450213.
* Only print unique deprecation notes. Fixes LP: #1454281.
[ CI Train Bot ]
* New rebuild forced.
-- CI Train Bot <email address hidden> Tue, 19 May 2015 10:47:09 +0000
| Changed in ubuntu-ui-toolkit (Ubuntu): | |
| status: | In Progress → Fix Released |


the whole header becomes hidden when no title is set.