From 20ba71a0bea3211cb002be01724c90b982bc6e79 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Fri, 14 Apr 2017 15:44:11 +0200 Subject: [PATCH] feat(ui/modules/Linphone/TelKeypad): in progress --- linphone-desktop/resources.qrc | 2 + .../modules/Linphone/TelKeypad/TelKeypad.qml | 48 +++++++++++++++++++ .../Linphone/TelKeypad/TelKeypadButton.qml | 5 ++ linphone-desktop/ui/modules/Linphone/qmldir | 2 + 4 files changed, 57 insertions(+) create mode 100644 linphone-desktop/ui/modules/Linphone/TelKeypad/TelKeypad.qml create mode 100644 linphone-desktop/ui/modules/Linphone/TelKeypad/TelKeypadButton.qml diff --git a/linphone-desktop/resources.qrc b/linphone-desktop/resources.qrc index 21e88710c..4d4d9577b 100644 --- a/linphone-desktop/resources.qrc +++ b/linphone-desktop/resources.qrc @@ -318,6 +318,8 @@ ui/modules/Linphone/Styles/qmldir ui/modules/Linphone/Styles/SmartSearchBarStyle.qml ui/modules/Linphone/Styles/TimelineStyle.qml + ui/modules/Linphone/TelKeypad/TelKeypadButton.qml + ui/modules/Linphone/TelKeypad/TelKeypad.qml ui/modules/Linphone/Timeline.qml ui/scripts/LinphoneUtils/linphone-utils.js ui/scripts/LinphoneUtils/qmldir diff --git a/linphone-desktop/ui/modules/Linphone/TelKeypad/TelKeypad.qml b/linphone-desktop/ui/modules/Linphone/TelKeypad/TelKeypad.qml new file mode 100644 index 000000000..beb7b2152 --- /dev/null +++ b/linphone-desktop/ui/modules/Linphone/TelKeypad/TelKeypad.qml @@ -0,0 +1,48 @@ +import QtQuick 2.7 + +// ============================================================================= + +Grid { + property var call + + // --------------------------------------------------------------------------- + + columns: 3 + + Repeater { + model: [{ + text: '1', + icon: 'answering_machine' + }, { + text: '2' + },{ + text: '3' + }, { + text: '4' + }, { + text: '5' + }, { + text: '6' + }, { + text: '7' + }, { + text: '8' + }, { + text: '9' + }, { + text: '*' + }, { + text: '0', + icon: 'plus' + }, { + text: '#' + }] + + TelKeypadButton { + icon: modelData.icon + text: modelData.text + + onClicked: console.log('TODO') + } + } +} diff --git a/linphone-desktop/ui/modules/Linphone/TelKeypad/TelKeypadButton.qml b/linphone-desktop/ui/modules/Linphone/TelKeypad/TelKeypadButton.qml new file mode 100644 index 000000000..230a57d7d --- /dev/null +++ b/linphone-desktop/ui/modules/Linphone/TelKeypad/TelKeypadButton.qml @@ -0,0 +1,5 @@ +import QtQuick 2.7 + +// ============================================================================= + +Item {} diff --git a/linphone-desktop/ui/modules/Linphone/qmldir b/linphone-desktop/ui/modules/Linphone/qmldir index 280bc4707..56e4b6cbf 100644 --- a/linphone-desktop/ui/modules/Linphone/qmldir +++ b/linphone-desktop/ui/modules/Linphone/qmldir @@ -27,4 +27,6 @@ PresenceLevel 1.0 Presence/PresenceLevel.qml SmartSearchBar 1.0 SmartSearchBar.qml +TelKeypad 1.0 TelKeypad.qml + Timeline 1.0 Timeline.qml