Commit 81c95124 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(ui/modules/Linphone/TelKeypad): supports A, B, C and D keys (close #107)

parent 767f3fe2
...@@ -10,7 +10,7 @@ QtObject { ...@@ -10,7 +10,7 @@ QtObject {
property int columnSpacing: 0 property int columnSpacing: 0
property int height: 180 property int height: 180
property int rowSpacing: 0 property int rowSpacing: 0
property int width: 150 property int width: 180
property color color: Colors.k property color color: Colors.k
property QtObject button: QtObject { property QtObject button: QtObject {
......
...@@ -30,40 +30,19 @@ Rectangle { ...@@ -30,40 +30,19 @@ Rectangle {
anchors.fill: parent anchors.fill: parent
columns: 3 // Not a style. columns: 4 // Not a style.
rows: 4 // Same idea. rows: 4 // Same idea.
columnSpacing: TelKeypadStyle.columnSpacing columnSpacing: TelKeypadStyle.columnSpacing
rowSpacing: TelKeypadStyle.rowSpacing rowSpacing: TelKeypadStyle.rowSpacing
Repeater { Repeater {
model: [{ model: [
text: '1', '1', '2', '3', 'A',
icon: 'answering_machine' '4', '5', '6', 'B',
}, { '7', '8', '9', 'C',
text: '2' '*', '0', '#', 'D',
},{ ]
text: '3'
}, {
text: '4'
}, {
text: '5'
}, {
text: '6'
}, {
text: '7'
}, {
text: '8'
}, {
text: '9'
}, {
text: '*'
}, {
text: '0',
icon: 'plus'
}, {
text: '#'
}]
TelKeypadButton { TelKeypadButton {
property var _timeout property var _timeout
...@@ -71,10 +50,9 @@ Rectangle { ...@@ -71,10 +50,9 @@ Rectangle {
Layout.fillHeight: true Layout.fillHeight: true
Layout.fillWidth: true Layout.fillWidth: true
icon: modelData.icon || '' text: modelData
text: modelData.text
onClicked: telKeypad.call.sendDtmf(modelData.text) onClicked: telKeypad.call.sendDtmf(modelData)
} }
} }
} }
......
...@@ -9,7 +9,6 @@ Item { ...@@ -9,7 +9,6 @@ Item {
id: button id: button
property color color: TelKeypadStyle.button.color.normal property color color: TelKeypadStyle.button.color.normal
property string icon: ''
property string text: '' property string text: ''
signal clicked signal clicked
......
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