1
0
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:
2019-03-16 16:18:05 +01:00
parent 7458507c9b
commit 86643fa46f
11 changed files with 106 additions and 103 deletions

View File

@ -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()
}

View File

@ -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: ;
}

View File

@ -1,3 +1,2 @@
FileDir 1.0 FileDir.qml
Link 1.0 Link.qml
Search 1.0 Search.qml
Link 1.0 Link.qml

View File

@ -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 {