Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
3566f3fd
Commit
3566f3fd
authored
Oct 25, 2016
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unstable
parent
33059cc2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
8 deletions
+57
-8
en.ts
tests/languages/en.ts
+11
-0
fr.ts
tests/languages/fr.ts
+11
-0
Menu.qml
tests/ui/modules/Common/Menu.qml
+14
-4
CallControls.qml
tests/ui/modules/Linphone/Call/CallControls.qml
+21
-4
No files found.
tests/languages/en.ts
View file @
3566f3fd
<
?
xml
version
=
"
1.0
"
encoding
=
"
utf-8
"
?
>
<
?
xml
version
=
"
1.0
"
encoding
=
"
utf-8
"
?
>
<!
DOCTYPE
TS
>
<!
DOCTYPE
TS
>
<
TS
version
=
"
2.1
"
>
<
TS
version
=
"
2.1
"
>
<
context
>
<
name
>
CallControls
<
/name
>
<
message
>
<
source
>
homeEntry
<
/source
>
<
translation
type
=
"
unfinished
"
>
Home
<
/translation
>
<
/message
>
<
message
>
<
source
>
contactsEntry
<
/source
>
<
translation
type
=
"
unfinished
"
>
Contacts
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
context
>
<
name
>
Calls
<
/name
>
<
name
>
Calls
<
/name
>
<
message
>
<
message
>
...
...
tests/languages/fr.ts
View file @
3566f3fd
<
?
xml
version
=
"
1.0
"
encoding
=
"
utf-8
"
?
>
<
?
xml
version
=
"
1.0
"
encoding
=
"
utf-8
"
?
>
<!
DOCTYPE
TS
>
<!
DOCTYPE
TS
>
<
TS
version
=
"
2.1
"
>
<
TS
version
=
"
2.1
"
>
<
context
>
<
name
>
CallControls
<
/name
>
<
message
>
<
source
>
homeEntry
<
/source
>
<
translation
type
=
"
unfinished
"
>
Accueil
<
/translation
>
<
/message
>
<
message
>
<
source
>
contactsEntry
<
/source
>
<
translation
type
=
"
unfinished
"
>
Contacts
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
context
>
<
name
>
Calls
<
/name
>
<
name
>
Calls
<
/name
>
<
message
>
<
message
>
...
...
tests/ui/modules/Common/Menu.qml
View file @
3566f3fd
...
@@ -14,6 +14,8 @@ ColumnLayout {
...
@@ -14,6 +14,8 @@ ColumnLayout {
property
int
entryWidth
property
int
entryWidth
property
var
entries
property
var
entries
property
int
fontSize
:
MenuStyle
.
entry
.
text
.
fontSize
property
int
_selectedEntry
:
0
property
int
_selectedEntry
:
0
signal
entrySelected
(
int
entry
)
signal
entrySelected
(
int
entry
)
...
@@ -48,15 +50,23 @@ ColumnLayout {
...
@@ -48,15 +50,23 @@ ColumnLayout {
spacing
:
MenuStyle
.
entry
.
spacing
spacing
:
MenuStyle
.
entry
.
spacing
Icon
{
Icon
{
Layout.preferredHeight
:
MenuStyle
.
entry
.
iconSize
Layout.preferredHeight
:
modelData
.
icon
Layout.preferredWidth
:
MenuStyle
.
entry
.
iconSize
?
(
modelData
.
iconSize
!=
null
icon
:
modelData
.
icon
?
modelData
.
iconSize
:
MenuStyle
.
entry
.
iconSize
)
:
0
Layout.preferredWidth
:
modelData
.
icon
?
(
modelData
.
iconSize
!=
null
?
modelData
.
iconSize
:
MenuStyle
.
entry
.
iconSize
)
:
0
icon
:
modelData
.
icon
||
''
}
}
Text
{
Text
{
Layout.fillWidth
:
true
Layout.fillWidth
:
true
color
:
MenuStyle
.
entry
.
text
.
color
color
:
MenuStyle
.
entry
.
text
.
color
font.pointSize
:
MenuStyle
.
entry
.
text
.
fontSize
font.pointSize
:
menu
.
fontSize
height
:
parent
.
height
height
:
parent
.
height
text
:
modelData
.
entryName
text
:
modelData
.
entryName
verticalAlignment
:
Text
.
AlignVCenter
verticalAlignment
:
Text
.
AlignVCenter
...
...
tests/ui/modules/Linphone/Call/CallControls.qml
View file @
3566f3fd
...
@@ -53,15 +53,32 @@ RowLayout {
...
@@ -53,15 +53,32 @@ RowLayout {
id
:
menu
id
:
menu
entryHeight
:
22
entryHeight
:
22
height
:
100
implicitHeight
:
toto
.
height
launcher
:
button
launcher
:
button
relativeTo
:
button
relativeTo
:
button
relativeX
:
button
.
width
+
1
relativeX
:
button
.
width
+
1
width
:
120
width
:
120
Rectangle
{
Menu
{
color
:
'
red
'
id
:
toto
anchors.fill
:
parent
entryHeight
:
22
entryWidth
:
98
fontSize
:
11
entries
:
[{
entryName
:
qsTr
(
'
homeEntry
'
)
},
{
entryName
:
qsTr
(
'
contactsEntry
'
)
}]
onEntrySelected
:
{
console
.
log
(
'
entry
'
,
entry
)
if
(
entry
===
0
)
{
setView
(
'
Home
'
)
}
else
if
(
entry
===
1
)
{
setView
(
'
Contacts
'
)
}
}
}
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment