2 * Copyright (C) 2013 Canonical, Ltd.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 3.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18import Ubuntu.Components 0.1
23 height: highlightItem.height
25 property alias placeholderText: pinentryField.placeholderText
26 property string username: ""
28 signal entered(string passphrase)
31 function clear(playAnimation) {
32 pinentryField.text = "";
34 wrongPasswordAnimation.start();
36 pinentryField.focus = false
44 anchors.centerIn: parent
45 color: Qt.rgba(0.1, 0.1, 0.1, 0.4)
46 border.color: Qt.rgba(0.4, 0.4, 0.4, 0.4)
47 border.width: units.dp(1)
52 objectName: "greeterLabel"
57 margins: units.gu(1.5)
59 text: root.username.length > 0 ? i18n.tr("Hello %1").arg(root.username) : i18n.tr("Hello")
65 objectName: "pinentryField"
67 horizontalCenter: parent.horizontalCenter
72 width: parent.width - units.gu(2)
73 echoMode: TextInput.Password
78 root.entered(pinentryField.text);
83 WrongPasswordAnimation {
84 id: wrongPasswordAnimation
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list