on xenial help sign in
Bring back the simple title code (no button needed)
commited49d9fb63a73a7c83e88188e61ee59d8d27c939 authorAlbert Astals Cid <albert.astals@canonical.com> dateThu 3 Mar 2016, 17:43 (11 years ago) parenta6eb39a
1 file changed+1−23
qml/Dash/DashPageHeader.qml+1−23
qml/Dash/DashPageHeader.qml+1−23
@@ -276,6 +276,7 @@ Item {
276276 property color panelColor: background.topColor
277277 panelForegroundColor: config.foregroundColor
278278 config: PageHeadConfiguration {
279+ title: root.title
279280 foregroundColor: root.scopeStyle ? root.scopeStyle.headerForeground : theme.palette.normal.baseText
280281 backAction: Action {
281282 iconName: backIsClose ? "close" : "back"
@@ -316,29 +317,6 @@ Item {
316317 onTriggered: root.favoriteClicked()
317318 }
318319 ]
319−
320− contents: Label {
321− visible: header.contents === null
322− LayoutMirroring.enabled: Qt.application.layoutDirection == Qt.RightToLeft
323− anchors {
324− left: parent.left
325− right: parent.right
326− verticalCenter: parent.verticalCenter
327− }
328− text: root.title
329− font.weight: header.fontWeight
330− fontSize: header.fontSize
331− color: header.panelForegroundColor
332− elide: Text.ElideRight
333− AbstractButton {
334− anchors.fill: parent
335− enabled: root.searchEntryEnabled
336− onClicked: {
337− headerContainer.showSearch = true;
338− searchTextField.forceActiveFocus();
339− }
340− }
341− }
342320 }
343321
344322 property var contents: null