mirror of
https://github.com/QRouland/UTPass.git
synced 2025-06-30 01:02:29 +00:00
Add style command && applied new style format to existing code && setup tests plugins
This commit is contained in:
@ -8,23 +8,25 @@ PageHeader {
|
||||
title: i18n.tr("UTPass")
|
||||
|
||||
contents: Item {
|
||||
height : parent.height
|
||||
height: parent.height
|
||||
width: parent.width
|
||||
Label {
|
||||
id : labelTitle
|
||||
id: labelTitle
|
||||
text: mainHeader.title
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
visible: true
|
||||
}
|
||||
TextField {
|
||||
id: searchBar
|
||||
anchors.right : parent.right
|
||||
anchors.left : parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.left: parent.left
|
||||
placeholderText: i18n.tr("Search")
|
||||
height: units.gu(4)
|
||||
visible: false
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
onFocusChanged: {}
|
||||
onFocusChanged: {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -35,8 +37,8 @@ PageHeader {
|
||||
iconName: "search"
|
||||
text: i18n.tr("Search")
|
||||
onTriggered: {
|
||||
searchBar.visible = !searchBar.visible;
|
||||
labelTitle.visible = !searchBar.visible;
|
||||
searchBar.visible = !searchBar.visible
|
||||
labelTitle.visible = !searchBar.visible
|
||||
if (searchBar.visible === true) {
|
||||
searchBar.focus = true
|
||||
}
|
||||
@ -57,4 +59,4 @@ PageHeader {
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -8,10 +8,10 @@ PageHeader {
|
||||
title: i18n.tr("UTPass")
|
||||
|
||||
contents: Item {
|
||||
height : parent.height
|
||||
height: parent.height
|
||||
width: parent.width
|
||||
Label {
|
||||
id : labelTitle
|
||||
id: labelTitle
|
||||
text: stackHeader.title
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
|
Reference in New Issue
Block a user