mirror of
https://github.com/QRouland/UTPass.git
synced 2025-06-29 16:52:29 +00:00
Fix build cmake
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import QtQuick 2.4
|
||||
import QtQuick.Layouts 1.1
|
||||
import Ubuntu.Components 1.3
|
||||
import Pass 1.0
|
||||
|
||||
import "components"
|
||||
|
||||
@ -19,4 +20,5 @@ MainView {
|
||||
|
||||
Component.onCompleted: push(pageStack.push(Qt.resolvedUrl("pages/PasswordList.qml")))
|
||||
}
|
||||
Component.onCompleted: Pass.speak()
|
||||
}
|
||||
|
@ -1,12 +0,0 @@
|
||||
import QtQuick 2.4
|
||||
|
||||
Item {
|
||||
TextField {
|
||||
id: searchBar
|
||||
placeholderText: i18n.tr("Search")
|
||||
height: units.gu(4)
|
||||
visible: false
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
Component.onCompleted: ;
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
FileDir 1.0 FileDir.qml
|
||||
Link 1.0 Link.qml
|
||||
Search 1.0 Search.qml
|
||||
Link 1.0 Link.qml
|
@ -24,6 +24,7 @@ PageHeader {
|
||||
height: units.gu(4)
|
||||
visible: false
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
onFocusChanged: {}
|
||||
}
|
||||
}
|
||||
|
||||
@ -34,8 +35,11 @@ PageHeader {
|
||||
iconName: "search"
|
||||
text: i18n.tr("Search")
|
||||
onTriggered: {
|
||||
searchBar.visible = searchBar.visible ? false : true;
|
||||
labelTitle.visible = labelTitle.visible ? false : true;
|
||||
searchBar.visible = !searchBar.visible;
|
||||
labelTitle.visible = !searchBar.visible;
|
||||
if (searchBar.visible === true) {
|
||||
searchBar.focus = true
|
||||
}
|
||||
}
|
||||
},
|
||||
Action {
|
||||
|
Reference in New Issue
Block a user