Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
linphone-desktop
Merge requests
!1062
Handle numeric keypad typing on keypad
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Christophe Deschamps
requested to merge
fix/linqt_1284
into
master
5 months ago
Overview
0
Commits
2
Pipelines
11
Changes
2
0
0
Compare
master
version 10
f3cf269a
5 months ago
version 9
16e7b6c9
5 months ago
version 8
3759f4f3
5 months ago
version 7
4402579f
5 months ago
version 6
4487712b
5 months ago
version 5
7c481659
5 months ago
version 4
af6559e6
5 months ago
version 3
cedbb25d
5 months ago
version 2
cd9c096c
5 months ago
version 1
bda36d1e
5 months ago
master (base)
and
latest version
latest version
5c52ef22
2 commits,
5 months ago
version 10
f3cf269a
2 commits,
5 months ago
version 9
16e7b6c9
2 commits,
5 months ago
version 8
3759f4f3
2 commits,
5 months ago
version 7
4402579f
2 commits,
5 months ago
version 6
4487712b
1 commit,
5 months ago
version 5
7c481659
1 commit,
5 months ago
version 4
af6559e6
1 commit,
5 months ago
version 3
cedbb25d
1 commit,
5 months ago
version 2
cd9c096c
1 commit,
5 months ago
version 1
bda36d1e
1 commit,
5 months ago
2 files
+
73
−
2
Expand all files
Preferences
Preferences
File browser
List view
Tree view
Compare changes
Inline
Side-by-side
Show whitespace changes
Show one file at a time
Search (e.g. *.vue) (Ctrl+P)
Linphone/view/Control/Input/NumericPad.qml
+
65
−
1
Options
View file @ 5c52ef22
Edit in single-file editor
Open in Web IDE
Show full file
@@ -19,6 +19,71 @@ FocusScope{
signal
launchCall
()
signal
wipe
()
function
keypadKeyPressedAtIndex
(
index
)
{
var
button
=
numPadGrid
.
getButtonAt
(
index
)
button
.
shadowEnabled
=
true
button
.
clicked
()
removeButtonsShadow
.
restart
()
}
Timer
{
id
:
removeButtonsShadow
interval
:
250
repeat
:
false
onTriggered
:
{
for
(
var
i
=
0
;
i
<
12
;
i
++
)
{
numPadGrid
.
getButtonAt
(
i
).
shadowEnabled
=
false
}
}
}
Keys.onPressed
:
(
event
)
=>
{
if
(
event
.
modifiers
&
Qt
.
KeypadModifier
)
{
if
(
event
.
key
===
Qt
.
Key_0
)
{
keypadKeyPressedAtIndex
(
10
)
}
if
(
event
.
key
===
Qt
.
Key_1
)
{
keypadKeyPressedAtIndex
(
0
)
}
if
(
event
.
key
===
Qt
.
Key_2
)
{
keypadKeyPressedAtIndex
(
1
)
}
if
(
event
.
key
===
Qt
.
Key_3
)
{
keypadKeyPressedAtIndex
(
2
)
}
if
(
event
.
key
===
Qt
.
Key_4
)
{
keypadKeyPressedAtIndex
(
3
)
}
if
(
event
.
key
===
Qt
.
Key_5
)
{
keypadKeyPressedAtIndex
(
4
)
}
if
(
event
.
key
===
Qt
.
Key_6
)
{
keypadKeyPressedAtIndex
(
5
)
}
if
(
event
.
key
===
Qt
.
Key_7
)
{
keypadKeyPressedAtIndex
(
6
)
}
if
(
event
.
key
===
Qt
.
Key_8
)
{
keypadKeyPressedAtIndex
(
7
)
}
if
(
event
.
key
===
Qt
.
Key_9
)
{
keypadKeyPressedAtIndex
(
8
)
}
if
(
event
.
key
===
Qt
.
Key_Asterisk
)
{
keypadKeyPressedAtIndex
(
9
)
}
if
(
event
.
key
===
Qt
.
Key_Plus
)
{
mainItem
.
buttonPressed
(
"
+
"
)
}
if
(
event
.
key
===
Qt
.
Key_Enter
)
{
mainItem
.
launchCall
()
}
}
if
(
event
.
key
===
Qt
.
Key_Backspace
)
{
mainItem
.
wipe
()
}
}
Layout.GridLayout
{
id
:
numPadGrid
anchors.fill
:
parent
@@ -48,7 +113,6 @@ FocusScope{
required
property
int
index
implicitWidth
:
60
*
DefaultStyle
.
dp
implicitHeight
:
60
*
DefaultStyle
.
dp
focus
:
index
==
4
onClicked
:
{
mainItem
.
buttonPressed
(
innerText
.
text
)
}
Linphone/view/Control/Popup/NumericPadPopup.qml
+
8
−
1
Options
View file @ 5c52ef22
Edit in single-file editor
Open in Web IDE
Show full file
@@ -47,6 +47,10 @@ Control.Popup {
color
:
DefaultStyle
.
grey_100
visible
:
!
mainItem
.
roundedBottom
}
MouseArea
{
anchors.fill
:
parent
onClicked
:
numPad
.
forceActiveFocus
()
}
Button
{
id
:
closeButton
visible
:
mainItem
.
closeButtonVisible
@@ -76,6 +80,9 @@ Control.Popup {
anchors.leftMargin
:
72
*
DefaultStyle
.
dp
onButtonPressed
:
(
text
)
=>
{
console
.
log
(
"
BUTTON PRESSED NUMPAD
"
)
mainItem
.
buttonPressed
(
text
)}
mainItem
.
buttonPressed
(
text
)
}
onLaunchCall
:
mainItem
.
launchCall
()
onWipe
:
mainItem
.
wipe
()
}
}
Menu
Explore
Projects
Groups
Topics
Snippets