1 /* Copyright (C) 2015, Jaguar Land Rover. All Rights Reserved.
\r
3 * This Source Code Form is subject to the terms of the Mozilla Public
\r
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
\r
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
\r
12 height: childrenRect.height
\r
13 property var letters: ["","abc","def","ghi","jkl","mno","pqrs","tuv","wxyz"]
\r
14 property var bottomRow: ["*","0","#"]
\r
16 signal number(string number)
\r
27 width: (root.width - ( numberGrid.spacing*(numberGrid.columns-1)))/numberGrid.columns
\r
28 height: numberKey.width * 0.8
\r
33 anchors.fill: parent
\r
35 border.color: "white"
\r
40 height: childrenRect.height
\r
42 anchors.centerIn: parent
\r
45 anchors.horizontalCenter: parent.horizontalCenter
\r
51 anchors.horizontalCenter: parent.horizontalCenter
\r
53 anchors.top: keypadNumber.bottom
\r
55 fontColor: "#53b5ce"
\r
56 text: letters[index]
\r
61 anchors.fill: parent
\r
62 onClicked: root.number(keypadNumber.text)
\r
70 width: (root.width - ( numberGrid.spacing*(numberGrid.columns-1)))/numberGrid.columns
\r
76 anchors.fill: parent
\r
78 border.color: "white"
\r
83 height: childrenRect.height
\r
85 anchors.centerIn: parent
\r
88 anchors.horizontalCenter: parent.horizontalCenter
\r
90 text: bottomRow[index]
\r
95 anchors.fill: parent
\r
96 onClicked: root.number(keypadNumber.text)
\r