Commit d04fed70 authored by Bruno Coudoin's avatar Bruno Coudoin
Browse files

core numpad, made the number smaller

the numbers rectangles are smaller but the touch area are twice of them.
it is also possible to set the number's width with the columnWidth
property.
parent 0f038021
......@@ -35,12 +35,13 @@ Item {
property var rightPanelComponent: rightPanel
property var backspaceButtonComponent:backspaceButton
property int maxDigit: 2
property int columnWidth: 80
signal answer
Column {
id: leftPanel
width: 120 * ApplicationInfo.ratio
width: columnWidth * ApplicationInfo.ratio
height: parent.height - 90 * ApplicationInfo.ratio
opacity: 0.8
......@@ -63,8 +64,14 @@ Item {
}
MouseArea{
anchors.fill:parent
MouseArea {
// Create an bigger area than the top rectangle to suit fingers
anchors {
left: parent.left
top: parent.top
bottom: parent.bottom
}
width: parent.width * 2
enabled: ApplicationSettings.isVirtualKeyboard
onClicked :{
......@@ -88,9 +95,9 @@ Item {
Column {
id: rightPanel
width: 120 * ApplicationInfo.ratio
width: columnWidth * ApplicationInfo.ratio
height: parent.height - 90 * ApplicationInfo.ratio
x: parent.width - 120 * ApplicationInfo.ratio
x: parent.width - columnWidth * ApplicationInfo.ratio
opacity: 0.8
Repeater {
......@@ -112,7 +119,13 @@ Item {
}
MouseArea {
anchors.fill: parent
// Create an bigger area than the top rectangle to suit fingers
anchors {
right: parent.right
top: parent.top
bottom: parent.bottom
}
width: parent.width * 2
enabled: ApplicationSettings.isVirtualKeyboard
onClicked: {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment