on xenial help sign in
No signature line by default in dashPageHeader
commita306a83cca6c43436774d624152ccfa35ff46dad authorAndrea Cimitan <andrea.cimitan@gmail.com> dateThu 6 Oct 2016, 15:46 (10 years ago) parent6aba128
2 files changed+9−7
qml/Dash/DashPageHeader.qml+8−7 qml/Dash/GenericScopeView.qml+1
qml/Dash/DashPageHeader.qml+8−7
@@ -25,7 +25,7 @@ Item {
2525 id: root
2626 objectName: "pageHeader"
2727 implicitHeight: headerContainer.height + signatureLineHeight
28− readonly property real signatureLineHeight: showSignatureLine ? units.gu(2) : 0
28+ readonly property real signatureLineHeight: showSignatureLine ? units.gu(2) : headerBottomLine.height
2929 readonly property real headerDividerLuminance: Style.luminance(bottomBorder.color)
3030
3131 property int activeFiltersCount: 0
@@ -44,7 +44,7 @@ Item {
4444 property ListModel searchHistory
4545 property alias searchQuery: searchTextField.text
4646 property alias searchHint: searchTextField.placeholderText
47− property bool showSignatureLine: true
47+ property bool showSignatureLine: false
4848
4949 property int paginationCount: 0
5050 property int paginationIndex: -1
@@ -414,6 +414,7 @@ Item {
414414 }
415415
416416 Rectangle {
417+ id: headerBottomLine
417418 anchors {
418419 top: headerContainer.bottom
419420 left: parent.left
@@ -424,6 +425,11 @@ Item {
424425 }
425426
426427 Row {
428+ anchors {
429+ top: headerContainer.bottom
430+ horizontalCenter: headerContainer.horizontalCenter
431+ topMargin: units.gu(.5)
432+ }
427433 visible: showSignatureLine
428434 spacing: units.gu(.5)
429435 Repeater {
@@ -439,10 +445,5 @@ Item {
439445 border.color: theme.palette.normal.baseText
440446 }
441447 }
442− anchors {
443− top: headerContainer.bottom
444− horizontalCenter: headerContainer.horizontalCenter
445− topMargin: units.gu(.5)
446− }
447448 }
448449}
qml/Dash/GenericScopeView.qml+1
@@ -644,6 +644,7 @@ FocusScope {
644644 scopeHasFilters: scopeView.scope.filters != null
645645 activeFiltersCount: scopeView.scope.activeFiltersCount
646646 showBackButton: scopeView.hasBackAction
647+ showSignatureLine: !showBackButton
647648 searchEntryEnabled: true
648649 settingsEnabled: scopeView.scope && scopeView.scope.settings && scopeView.scope.settings.count > 0 || false
649650 favoriteEnabled: scopeView.scope && scopeView.scope.id !== "clickscope"