mirror of
https://github.com/QRouland/UTPass.git
synced 2025-06-30 01:02:29 +00:00
Various improvement :)
This commit is contained in:
32
qml/pages/headers/MainHeader.qml
Normal file
32
qml/pages/headers/MainHeader.qml
Normal file
@ -0,0 +1,32 @@
|
||||
import QtQuick 2.4
|
||||
import Ubuntu.Components 1.3
|
||||
|
||||
PageHeader {
|
||||
id: mainHeader
|
||||
width: parent.width
|
||||
height: units.gu(6)
|
||||
title: i18n.tr("UTPass")
|
||||
|
||||
trailingActionBar.height: units.gu(4)
|
||||
trailingActionBar.numberOfSlots: 2
|
||||
trailingActionBar.actions: [
|
||||
Action {
|
||||
iconName: "search"
|
||||
text: i18n.tr("Search")
|
||||
},
|
||||
Action {
|
||||
iconName: "settings"
|
||||
text: i18n.tr("Settings")
|
||||
onTriggered: {
|
||||
pageStack.push(Qt.resolvedUrl("../Settings.qml"))
|
||||
}
|
||||
},
|
||||
Action {
|
||||
iconName: "info"
|
||||
text: i18n.tr("Info")
|
||||
onTriggered: {
|
||||
pageStack.push(Qt.resolvedUrl("../Info.qml"))
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
20
qml/pages/headers/StackHeader.qml
Normal file
20
qml/pages/headers/StackHeader.qml
Normal file
@ -0,0 +1,20 @@
|
||||
import QtQuick 2.4
|
||||
import Ubuntu.Components 1.3
|
||||
|
||||
PageHeader {
|
||||
width: parent.width
|
||||
height: units.gu(6)
|
||||
title: i18n.tr("UTPass")
|
||||
|
||||
leadingActionBar.height: units.gu(4)
|
||||
leadingActionBar.actions: [
|
||||
Action {
|
||||
id: backAction
|
||||
iconName: "back"
|
||||
text: "Back"
|
||||
onTriggered: {
|
||||
pageStack.pop()
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
2
qml/pages/headers/qmldir
Normal file
2
qml/pages/headers/qmldir
Normal file
@ -0,0 +1,2 @@
|
||||
MainHeader 1.0 MainHeader.qml
|
||||
StackHeader 1.0 StackHeader.qml
|
Reference in New Issue
Block a user