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
576a7564
Commit
576a7564
authored
Mar 03, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ui/modules/Common/Form/Placements): refactoring, responsive components
parent
17185312
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
294 additions
and
241 deletions
+294
-241
resources.qrc
linphone-desktop/resources.qrc
+5
-6
HexField.qml
linphone-desktop/ui/modules/Common/Form/Fields/HexField.qml
+5
-1
PortField.qml
linphone-desktop/ui/modules/Common/Form/Fields/PortField.qml
+4
-1
Form.qml
linphone-desktop/ui/modules/Common/Form/Placements/Form.qml
+3
-2
FormEntry.qml
...e-desktop/ui/modules/Common/Form/Placements/FormEntry.qml
+0
-42
FormGroup.qml
...e-desktop/ui/modules/Common/Form/Placements/FormGroup.qml
+31
-12
FormHeader.qml
...-desktop/ui/modules/Common/Form/Placements/FormHeader.qml
+0
-10
FormHeaderEntry.qml
...top/ui/modules/Common/Form/Placements/FormHeaderEntry.qml
+0
-28
FormHeaderGroup.qml
...top/ui/modules/Common/Form/Placements/FormHeaderGroup.qml
+0
-34
FormLine.qml
...ne-desktop/ui/modules/Common/Form/Placements/FormLine.qml
+11
-2
FormTable.qml
...e-desktop/ui/modules/Common/Form/Placements/FormTable.qml
+56
-0
FormTableEntry.qml
...ktop/ui/modules/Common/Form/Placements/FormTableEntry.qml
+28
-0
FormTableLine.qml
...sktop/ui/modules/Common/Form/Placements/FormTableLine.qml
+36
-0
TabContainer.qml
linphone-desktop/ui/modules/Common/Form/Tab/TabContainer.qml
+0
-2
ComboBoxStyle.qml
...e-desktop/ui/modules/Common/Styles/Form/ComboBoxStyle.qml
+1
-1
FormGroupStyle.qml
.../modules/Common/Styles/Form/Placements/FormGroupStyle.qml
+1
-2
FormLineStyle.qml
...i/modules/Common/Styles/Form/Placements/FormLineStyle.qml
+1
-1
FormTableLineStyle.qml
...ules/Common/Styles/Form/Placements/FormTableLineStyle.qml
+1
-1
FormTableStyle.qml
.../modules/Common/Styles/Form/Placements/FormTableStyle.qml
+21
-0
TabContainerStyle.qml
...p/ui/modules/Common/Styles/Form/Tab/TabContainerStyle.qml
+1
-1
qmldir
linphone-desktop/ui/modules/Common/Styles/qmldir
+2
-2
qmldir
linphone-desktop/ui/modules/Common/qmldir
+3
-4
SettingsNetwork.qml
linphone-desktop/ui/views/App/Settings/SettingsNetwork.qml
+84
-89
No files found.
linphone-desktop/resources.qrc
View file @
576a7564
...
@@ -194,13 +194,12 @@
...
@@ -194,13 +194,12 @@
<file>
ui/modules/Common/Form/+linux/SearchBox.qml
</file>
<file>
ui/modules/Common/Form/+linux/SearchBox.qml
</file>
<file>
ui/modules/Common/Form/ListForm.qml
</file>
<file>
ui/modules/Common/Form/ListForm.qml
</file>
<file>
ui/modules/Common/Form/Placements/FormEmptyLine.qml
</file>
<file>
ui/modules/Common/Form/Placements/FormEmptyLine.qml
</file>
<file>
ui/modules/Common/Form/Placements/FormEntry.qml
</file>
<file>
ui/modules/Common/Form/Placements/FormGroup.qml
</file>
<file>
ui/modules/Common/Form/Placements/FormGroup.qml
</file>
<file>
ui/modules/Common/Form/Placements/FormHeaderEntry.qml
</file>
<file>
ui/modules/Common/Form/Placements/FormHeaderGroup.qml
</file>
<file>
ui/modules/Common/Form/Placements/FormHeader.qml
</file>
<file>
ui/modules/Common/Form/Placements/FormLine.qml
</file>
<file>
ui/modules/Common/Form/Placements/FormLine.qml
</file>
<file>
ui/modules/Common/Form/Placements/Form.qml
</file>
<file>
ui/modules/Common/Form/Placements/Form.qml
</file>
<file>
ui/modules/Common/Form/Placements/FormTableEntry.qml
</file>
<file>
ui/modules/Common/Form/Placements/FormTableLine.qml
</file>
<file>
ui/modules/Common/Form/Placements/FormTable.qml
</file>
<file>
ui/modules/Common/Form/SearchBox.qml
</file>
<file>
ui/modules/Common/Form/SearchBox.qml
</file>
<file>
ui/modules/Common/Form/StaticListForm.qml
</file>
<file>
ui/modules/Common/Form/StaticListForm.qml
</file>
<file>
ui/modules/Common/Form/Switch.qml
</file>
<file>
ui/modules/Common/Form/Switch.qml
</file>
...
@@ -241,10 +240,10 @@
...
@@ -241,10 +240,10 @@
<file>
ui/modules/Common/Styles/Form/Fields/TextFieldStyle.qml
</file>
<file>
ui/modules/Common/Styles/Form/Fields/TextFieldStyle.qml
</file>
<file>
ui/modules/Common/Styles/Form/ListFormStyle.qml
</file>
<file>
ui/modules/Common/Styles/Form/ListFormStyle.qml
</file>
<file>
ui/modules/Common/Styles/Form/Placements/FormGroupStyle.qml
</file>
<file>
ui/modules/Common/Styles/Form/Placements/FormGroupStyle.qml
</file>
<file>
ui/modules/Common/Styles/Form/Placements/FormHeaderGroupStyle.qml
</file>
<file>
ui/modules/Common/Styles/Form/Placements/FormHeaderStyle.qml
</file>
<file>
ui/modules/Common/Styles/Form/Placements/FormLineStyle.qml
</file>
<file>
ui/modules/Common/Styles/Form/Placements/FormLineStyle.qml
</file>
<file>
ui/modules/Common/Styles/Form/Placements/FormStyle.qml
</file>
<file>
ui/modules/Common/Styles/Form/Placements/FormStyle.qml
</file>
<file>
ui/modules/Common/Styles/Form/Placements/FormTableLineStyle.qml
</file>
<file>
ui/modules/Common/Styles/Form/Placements/FormTableStyle.qml
</file>
<file>
ui/modules/Common/Styles/Form/SearchBoxStyle.qml
</file>
<file>
ui/modules/Common/Styles/Form/SearchBoxStyle.qml
</file>
<file>
ui/modules/Common/Styles/Form/SwitchStyle.qml
</file>
<file>
ui/modules/Common/Styles/Form/SwitchStyle.qml
</file>
<file>
ui/modules/Common/Styles/Form/Tab/TabButtonStyle.qml
</file>
<file>
ui/modules/Common/Styles/Form/Tab/TabButtonStyle.qml
</file>
...
...
linphone-desktop/ui/modules/Common/Form/Fields/HexField.qml
View file @
576a7564
import
QtQuick
2.7
import
QtQuick
2.7
import
Common
.
Styles
1.0
// =============================================================================
// =============================================================================
Item
{
Item
{
...
@@ -23,7 +25,7 @@ Item {
...
@@ -23,7 +25,7 @@ Item {
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
implicitHeight
:
textField
.
height
implicitHeight
:
textField
.
height
implicitWidth
:
textFiel
d
.
width
width
:
TextFieldStyle
.
backgroun
d
.
width
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
...
@@ -40,6 +42,8 @@ Item {
...
@@ -40,6 +42,8 @@ Item {
regExp
:
/
[
0-9A-Fa-f
]
*/
regExp
:
/
[
0-9A-Fa-f
]
*/
}
}
width
:
parent
.
width
onEditingFinished
:
{
onEditingFinished
:
{
text
=
_computeText
(
'
0x
'
+
text
)
text
=
_computeText
(
'
0x
'
+
text
)
wrapper
.
editingFinished
(
parseInt
(
text
,
16
))
wrapper
.
editingFinished
(
parseInt
(
text
,
16
))
...
...
linphone-desktop/ui/modules/Common/Form/Fields/PortField.qml
View file @
576a7564
import
QtQuick
2.7
import
QtQuick
2.7
import
Common
.
Styles
1.0
import
Utils
1.0
import
Utils
1.0
// =============================================================================
// =============================================================================
...
@@ -47,7 +48,7 @@ Item {
...
@@ -47,7 +48,7 @@ Item {
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
implicitHeight
:
textField
.
height
implicitHeight
:
textField
.
height
implicitWidth
:
textFiel
d
.
width
width
:
TextFieldStyle
.
backgroun
d
.
width
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
...
@@ -66,6 +67,8 @@ Item {
...
@@ -66,6 +67,8 @@ Item {
:
Utils
.
PORT_REGEX
:
Utils
.
PORT_REGEX
}
}
width
:
parent
.
width
// Workaround to supports empty string.
// Workaround to supports empty string.
Keys.onReturnPressed
:
editingFinished
()
Keys.onReturnPressed
:
editingFinished
()
onActiveFocusChanged
:
!
activeFocus
&&
editingFinished
()
onActiveFocusChanged
:
!
activeFocus
&&
editingFinished
()
...
...
linphone-desktop/ui/modules/Common/Form/Placements/Form.qml
View file @
576a7564
...
@@ -12,10 +12,11 @@ Column {
...
@@ -12,10 +12,11 @@ Column {
spacing
:
FormStyle
.
spacing
spacing
:
FormStyle
.
spacing
ColumnLayout
{
// ---------------------------------------------------------------------------
width
:
parent
.
width
ColumnLayout
{
spacing
:
FormStyle
.
header
.
spacing
spacing
:
FormStyle
.
header
.
spacing
width
:
parent
.
width
Text
{
Text
{
id
:
title
id
:
title
...
...
linphone-desktop/ui/modules/Common/Form/Placements/FormEntry.qml
deleted
100644 → 0
View file @
17185312
import
QtQuick
2.7
import
QtQuick
.
Layouts
1.3
import
Common
.
Styles
1.0
// =============================================================================
// Like a `FormGroup` but without label.
// Must be used in a `FormLine`.
// =============================================================================
Item
{
default
property
alias
_content
:
content
.
data
// ---------------------------------------------------------------------------
implicitHeight
:
content
.
height
width
:
FormGroupStyle
.
content
.
width
Item
{
id
:
content
readonly
property
int
currentHeight
:
_content
[
0
]
?
_content
[
0
].
height
:
0
readonly
property
int
currentWidth
:
_content
[
0
]
?
_content
[
0
].
width
:
0
anchors
{
horizontalCenter
:
parent
.
horizontalCenter
top
:
width
>
FormGroupStyle
.
legend
.
width
?
parent
.
top
:
undefined
verticalCenter
:
width
>
FormGroupStyle
.
legend
.
width
?
undefined
:
parent
.
verticalCenter
}
height
:
currentHeight
width
:
currentWidth
>
FormGroupStyle
.
content
.
width
?
FormGroupStyle
.
content
.
width
:
currentWidth
}
}
linphone-desktop/ui/modules/Common/Form/Placements/FormGroup.qml
View file @
576a7564
...
@@ -3,19 +3,19 @@ import QtQuick.Layouts 1.3
...
@@ -3,19 +3,19 @@ import QtQuick.Layouts 1.3
import
Common
.
Styles
1.0
import
Common
.
Styles
1.0
// =============================================================================
// Display a form component with a legend.
// Must be used in a `FormLine`.
// =============================================================================
// =============================================================================
RowLayout
{
RowLayout
{
property
alias
label
:
label
.
text
property
alias
label
:
label
.
text
default
property
alias
_content
:
content
.
data
default
property
var
_content
:
null
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
spacing
:
FormGroupStyle
.
spacing
spacing
:
FormGroupStyle
.
spacing
width
:
parent
.
maxItemWidth
// ---------------------------------------------------------------------------
Text
{
Text
{
id
:
label
id
:
label
...
@@ -31,17 +31,36 @@ RowLayout {
...
@@ -31,17 +31,36 @@ RowLayout {
verticalAlignment
:
Text
.
AlignVCenter
verticalAlignment
:
Text
.
AlignVCenter
}
}
Item
{
// ---------------------------------------------------------------------------
id
:
content
readonly
property
int
currentHeight
:
_content
[
0
]
?
_content
[
0
].
height
:
0
Item
{
readonly
property
int
currentHeight
:
_content
?
_content
.
height
:
0
Layout.alignment
:
currentHeight
<
FormGroupStyle
.
legend
.
height
Layout.alignment
:
(
?
Qt
.
AlignVCenter
currentHeight
<
FormGroupStyle
.
legend
.
height
:
Qt
.
AlignTop
?
Qt
.
AlignVCenter
:
Qt
.
AlignTop
)
|
Qt
.
AlignLeft
Layout.
maximumWidth
:
FormGroupStyle
.
content
.
width
Layout.
fillWidth
:
true
Layout.preferredHeight
:
currentHeight
Layout.preferredHeight
:
currentHeight
Layout.preferredWidth
:
FormGroupStyle
.
content
.
width
Loader
{
active
:
!!
_content
anchors.fill
:
parent
sourceComponent
:
Item
{
id
:
content
data
:
[
_content
]
width
:
parent
.
width
Component.onCompleted
:
_content
.
width
=
Qt
.
binding
(
function
()
{
var
contentWidth
=
content
.
width
var
wishedWidth
=
FormGroupStyle
.
content
.
maxWidth
return
contentWidth
>
wishedWidth
?
wishedWidth
:
contentWidth
})
}
}
}
}
}
}
linphone-desktop/ui/modules/Common/Form/Placements/FormHeader.qml
deleted
100644 → 0
View file @
17185312
import
Common
.
Styles
1.0
// =============================================================================
// Like a `FormLine` but used as form header.
// =============================================================================
FormLine
{
height
:
FormHeaderStyle
.
height
width
:
parent
.
width
}
linphone-desktop/ui/modules/Common/Form/Placements/FormHeaderEntry.qml
deleted
100644 → 0
View file @
17185312
import
QtQuick
2.7
import
Common
.
Styles
1.0
// =============================================================================
// Display a title on a `FormEntry`.
// Must be used in a `FormHeader`.
// =============================================================================
Item
{
property
alias
text
:
text
.
text
height
:
parent
.
height
width
:
FormGroupStyle
.
content
.
width
Text
{
id
:
text
anchors.centerIn
:
parent
color
:
FormHeaderGroupStyle
.
text
.
color
elide
:
Text
.
ElideRight
font
{
bold
:
true
pointSize
:
FormHeaderGroupStyle
.
text
.
fontSize
}
}
}
linphone-desktop/ui/modules/Common/Form/Placements/FormHeaderGroup.qml
deleted
100644 → 0
View file @
17185312
import
QtQuick
2.7
import
Common
.
Styles
1.0
// =============================================================================
// Display a title on a `FormGroup`.
// Must be used in a `FormHeader`.
// =============================================================================
Item
{
property
alias
text
:
text
.
text
height
:
parent
.
height
width
:
FormGroupStyle
.
spacing
+
FormGroupStyle
.
legend
.
width
+
FormGroupStyle
.
content
.
width
Text
{
id
:
text
anchors
{
fill
:
parent
leftMargin
:
FormGroupStyle
.
spacing
+
FormGroupStyle
.
legend
.
width
}
color
:
FormHeaderGroupStyle
.
text
.
color
elide
:
Text
.
ElideRight
font
{
bold
:
true
pointSize
:
FormHeaderGroupStyle
.
text
.
fontSize
}
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignVCenter
}
}
linphone-desktop/ui/modules/Common/Form/Placements/FormLine.qml
View file @
576a7564
import
QtQuick
2.7
import
QtQuick
2.7
import
QtQuick
.
Layouts
1.3
import
Common
.
Styles
1.0
import
Common
.
Styles
1.0
// =============================================================================
// A line of `FormGroup`/`FormEntry`.
// =============================================================================
// =============================================================================
Row
{
Row
{
readonly
property
double
maxItemWidth
:
{
var
n
=
children
.
length
var
curWidth
=
width
/
n
-
(
n
-
1
)
*
spacing
var
maxWidth
=
FormGroupStyle
.
legend
.
width
+
FormGroupStyle
.
content
.
maxWidth
+
FormGroupStyle
.
spacing
return
curWidth
<
maxWidth
?
curWidth
:
maxWidth
}
// ---------------------------------------------------------------------------
spacing
:
FormLineStyle
.
spacing
spacing
:
FormLineStyle
.
spacing
width
:
parent
.
width
width
:
parent
.
width
}
}
linphone-desktop/ui/modules/Common/Form/Placements/FormTable.qml
0 → 100644
View file @
576a7564
import
QtQuick
2.7
import
Common
.
Styles
1.0
// =============================================================================
Column
{
id
:
formTable
property
alias
titles
:
header
.
model
readonly
property
double
maxItemWidth
:
{
var
n
=
titles
.
length
var
curWidth
=
(
width
-
FormTableStyle
.
entry
.
width
)
/
n
-
(
n
-
1
)
*
FormTableLineStyle
.
spacing
var
maxWidth
=
FormTableStyle
.
entry
.
maxWidth
return
curWidth
<
maxWidth
?
curWidth
:
maxWidth
}
// ---------------------------------------------------------------------------
spacing
:
FormTableStyle
.
spacing
width
:
parent
.
width
// ---------------------------------------------------------------------------
Row
{
spacing
:
FormTableLineStyle
.
spacing
width
:
parent
.
width
// No title for the titles column.
Item
{
height
:
FormTableStyle
.
entry
.
height
width
:
FormTableStyle
.
entry
.
width
}
Repeater
{
id
:
header
Text
{
id
:
text
color
:
FormTableStyle
.
entry
.
text
.
color
elide
:
Text
.
ElideRight
horizontalAlignment
:
Text
.
AlignHCenter
text
:
modelData
height
:
FormTableStyle
.
entry
.
height
width
:
formTable
.
maxItemWidth
font
{
bold
:
true
pointSize
:
FormTableStyle
.
entry
.
text
.
fontSize
}
}
}
}
}
linphone-desktop/ui/modules/Common/Form/Placements/FormTableEntry.qml
0 → 100644
View file @
576a7564
import
QtQuick
2.7
import
Common
.
Styles
1.0
// =============================================================================
Item
{
default
property
var
_content
readonly
property
int
currentHeight
:
_content
?
_content
.
height
:
0
// ---------------------------------------------------------------------------
height
:
currentHeight
width
:
parent
.
maxItemWidth
Loader
{
active
:
!!
_content
anchors.fill
:
parent
sourceComponent
:
Item
{
id
:
item
data
:
[
_content
]
Component.onCompleted
:
_content
.
anchors
.
centerIn
=
item
}
}
}
linphone-desktop/ui/modules/Common/Form/Placements/FormTableLine.qml
0 → 100644
View file @
576a7564
import
QtQuick
2.7
import
QtQuick
.
Layouts
1.3
import
Common
.
Styles
1.0
// =============================================================================
Row
{
property
alias
title
:
title
.
text
readonly
property
double
maxItemWidth
:
parent
.
maxItemWidth
// ---------------------------------------------------------------------------
spacing
:
FormLineStyle
.
spacing
width
:
parent
.
width
// ---------------------------------------------------------------------------
Text
{
id
:
title
color
:
FormTableStyle
.
entry
.
text
.
color
elide
:
Text
.
ElideRight
horizontalAlignment
:
Text
.
AlignRight
verticalAlignment
:
Text
.
AlignVCenter
height
:
FormTableStyle
.
entry
.
height
width
:
FormTableStyle
.
entry
.
width
font
{
bold
:
false
pointSize
:
FormTableStyle
.
entry
.
text
.
fontSize
}
}
}
linphone-desktop/ui/modules/Common/Form/Tab/TabContainer.qml
View file @
576a7564
...
@@ -44,8 +44,6 @@ Rectangle {
...
@@ -44,8 +44,6 @@ Rectangle {
top
:
parent
.
top
top
:
parent
.
top
topMargin
:
TabContainerStyle
.
topMargin
topMargin
:
TabContainerStyle
.
topMargin
}
}
width
:
parent
.
width
}
}
}
}
...
...
linphone-desktop/ui/modules/Common/Styles/Form/ComboBoxStyle.qml
View file @
576a7564
...
@@ -11,7 +11,7 @@ QtObject {
...
@@ -11,7 +11,7 @@ QtObject {
property
int
height
:
36
property
int
height
:
36
property
int
iconSize
:
10
property
int
iconSize
:
10
property
int
radius
:
4
property
int
radius
:
4
property
int
width
:
4
00
property
int
width
:
2
00
property
QtObject
border
:
QtObject
{
property
QtObject
border
:
QtObject
{
property
color
color
:
Colors
.
c
property
color
color
:
Colors
.
c
...
...
linphone-desktop/ui/modules/Common/Styles/Form/Placements/FormGroupStyle.qml
View file @
576a7564
...
@@ -9,8 +9,7 @@ QtObject {
...
@@ -9,8 +9,7 @@ QtObject {
property
int
spacing
:
20
property
int
spacing
:
20
property
QtObject
content
:
QtObject
{
property
QtObject
content
:
QtObject
{
property
int
height
:
300
property
int
maxWidth
:
400
property
int
width
:
200
}
}
property
QtObject
legend
:
QtObject
{
property
QtObject
legend
:
QtObject
{
...
...
linphone-desktop/ui/modules/Common/Styles/Form/Placements/FormLineStyle.qml
View file @
576a7564
...
@@ -4,5 +4,5 @@ import QtQuick 2.7
...
@@ -4,5 +4,5 @@ import QtQuick 2.7
// =============================================================================
// =============================================================================
QtObject
{
QtObject
{
property
int
spacing
:
1
0
property
int
spacing
:
2
0
}
}
linphone-desktop/ui/modules/Common/Styles/Form/Placements/Form
Header
Style.qml
→
linphone-desktop/ui/modules/Common/Styles/Form/Placements/Form
TableLine
Style.qml
View file @
576a7564
...
@@ -4,5 +4,5 @@ import QtQuick 2.7
...
@@ -4,5 +4,5 @@ import QtQuick 2.7
// =============================================================================
// =============================================================================
QtObject
{
QtObject
{
property
int
height
:
3
0
property
int
spacing
:
2
0
}
}
linphone-desktop/ui/modules/Common/Styles/Form/Placements/Form
HeaderGroup
Style.qml
→
linphone-desktop/ui/modules/Common/Styles/Form/Placements/Form
Table
Style.qml
View file @
576a7564
...
@@ -6,8 +6,16 @@ import Common 1.0
...
@@ -6,8 +6,16 @@ import Common 1.0
// =============================================================================
// =============================================================================
QtObject
{
QtObject
{
property
QtObject
text
:
QtObject
{
property
int
spacing
:
10
property
color
color
:
Colors
.
j
property
int
fontSize
:
10
property
QtObject
entry
:
QtObject
{
property
int
height
:
36
property
int
width
:
200
property
int
maxWidth
:
400
property
QtObject
text
:
QtObject
{
property
color
color
:
Colors
.
j
property
int
fontSize
:
10
}
}
}
}
}
linphone-desktop/ui/modules/Common/Styles/Form/Tab/TabContainerStyle.qml
View file @
576a7564
...
@@ -9,7 +9,7 @@ QtObject {
...
@@ -9,7 +9,7 @@ QtObject {
property
color
color
:
Colors
.
k
property
color
color
:
Colors
.
k
property
int
bottomMargin
:
30
property
int
bottomMargin
:
30
property
int
leftMargin
:
30
property
int
leftMargin
:
30
property
int
rightMargin
:
3
0
property
int
rightMargin
:
4
0
property
int
topMargin
:
30
property
int
topMargin
:
30
property
QtObject
separator
:
QtObject
{
property
QtObject
separator
:
QtObject
{
...
...
linphone-desktop/ui/modules/Common/Styles/qmldir
View file @
576a7564
...
@@ -29,10 +29,10 @@ singleton TextAreaFieldStyle 1.0 Form/Fields/TextAreaFieldStyle.qml
...
@@ -29,10 +29,10 @@ singleton TextAreaFieldStyle 1.0 Form/Fields/TextAreaFieldStyle.qml
singleton TextFieldStyle 1.0 Form/Fields/TextFieldStyle.qml
singleton TextFieldStyle 1.0 Form/Fields/TextFieldStyle.qml
singleton FormGroupStyle 1.0 Form/Placements/FormGroupStyle.qml
singleton FormGroupStyle 1.0 Form/Placements/FormGroupStyle.qml
singleton FormHeaderStyle 1.0 Form/Placements/FormHeaderStyle.qml
singleton FormHeaderGroupStyle 1.0 Form/Placements/FormHeaderGroupStyle.qml
singleton FormLineStyle 1.0 Form/Placements/FormLineStyle.qml
singleton FormLineStyle 1.0 Form/Placements/FormLineStyle.qml
singleton FormStyle 1.0 Form/Placements/FormStyle.qml
singleton FormStyle 1.0 Form/Placements/FormStyle.qml
singleton FormTableLineStyle 1.0 Form/Placements/FormTableLineStyle.qml
singleton FormTableStyle 1.0 Form/Placements/FormTableStyle.qml
singleton TabButtonStyle 1.0 Form/Tab/TabButtonStyle.qml
singleton TabButtonStyle 1.0 Form/Tab/TabButtonStyle.qml
singleton TabContainerStyle 1.0 Form/Tab/TabContainerStyle.qml
singleton TabContainerStyle 1.0 Form/Tab/TabContainerStyle.qml
...
...
linphone-desktop/ui/modules/Common/qmldir
View file @
576a7564
...
@@ -41,12 +41,11 @@ TextField 1.0 Form/Fields/TextField.qml
...
@@ -41,12 +41,11 @@ TextField 1.0 Form/Fields/TextField.qml
Form 1.0 Form/Placements/Form.qml
Form 1.0 Form/Placements/Form.qml
FormEmptyLine 1.0 Form/Placements/FormEmptyLine.qml
FormEmptyLine 1.0 Form/Placements/FormEmptyLine.qml
FormEntry 1.0 Form/Placements/FormEntry.qml
FormGroup 1.0 Form/Placements/FormGroup.qml
FormGroup 1.0 Form/Placements/FormGroup.qml
FormHeader 1.0 Form/Placements/FormHeader.qml
FormHeaderEntry 1.0 Form/Placements/FormHeaderEntry.qml
FormHeaderGroup 1.0 Form/Placements/FormHeaderGroup.qml
FormLine 1.0 Form/Placements/FormLine.qml
FormLine 1.0 Form/Placements/FormLine.qml
FormTable 1.0 Form/Placements/FormTable.qml
FormTableEntry 1.0 Form/Placements/FormTableEntry.qml
FormTableLine 1.0 Form/Placements/FormTableLine.qml
TabBar 1.0 Form/Tab/TabBar.qml
TabBar 1.0 Form/Tab/TabBar.qml
TabButton 1.0 Form/Tab/TabButton.qml
TabButton 1.0 Form/Tab/TabButton.qml
...
...
linphone-desktop/ui/views/App/Settings/SettingsNetwork.qml
View file @
576a7564
...
@@ -104,128 +104,123 @@ TabContainer {
...
@@ -104,128 +104,123 @@ TabContainer {
title
:
qsTr
(
'
networkProtocolAndPortsTitle
'
)
title
:
qsTr
(
'
networkProtocolAndPortsTitle
'
)
width
:
parent
.
width
width
:
parent
.
width
FormHeader
{
FormTable
{
FormHeaderGroup
{
titles
:
[
text
:
qsTr
(
'
portHeader
'
)
qsTr
(
'
portHeader
'
),
}
qsTr
(
'
randomPortHeader
'
),
qsTr
(
'
enabledPortHeader
'
)
FormHeaderEntry
{
]
text
:
qsTr
(
'
randomPortHeader
'
)
}
FormTableLine
{
title
:
qsTr
(
'
sipUdpPortLabel
'
)
FormHeaderEntry
{
text
:
qsTr
(
'
enabledPortHeader
'
)
FormTableEntry
{
}
NumericField
{
}
minValue
:
0
maxValue
:
65535
FormLine
{
readOnly
:
randomSipUdpPort
.
checked
||
!
enableSipUdpPort
.
checked
FormGroup
{
}
label
:
qsTr
(
'
sipUdpPortLabel
'
)
NumericField
{
minValue
:
0
maxValue
:
65535
readOnly
:
randomSipUdpPort
.
checked
||
!
enableSipUdpPort
.
checked
}
}
}
Form
Entry
{
FormTable
Entry
{
Switch
{
Switch
{
id
:
randomSipUdpPort
id
:
randomSipUdpPort
enabled
:
enableSipUdpPort
.
checked
enabled
:
enableSipUdpPort
.
checked
}
}
}
}
FormEntry
{
FormTableEntry
{
Switch
{
Switch
{
id
:
enableSipUdpPort
id
:
enableSipUdpPort
}
}
}
}
}
}
FormLine
{
FormTableLine
{
FormGroup
{
title
:
qsTr
(
'
sipTcpPortLabel
'
)
label
:
qsTr
(
'
sipTcpPortLabel
'
)
NumericField
{
FormTableEntry
{
minValue
:
0
NumericField
{
maxValue
:
65535
readOnly
:
randomSipTcpPort
.
checked
||
!
enableSipTcpPort
.
checked
minValue
:
0
maxValue
:
65535
readOnly
:
randomSipTcpPort
.
checked
||
!
enableSipTcpPort
.
checked
}
}
}
}
Form
Entry
{
FormTable
Entry
{
Switch
{
Switch
{
id
:
randomSipTcpPort
id
:
randomSipTcpPort
enabled
:
enableSipTcpPort
.
checked
enabled
:
enableSipTcpPort
.
checked
}
}
}
}
FormEntry
{
FormTableEntry
{
Switch
{
Switch
{
id
:
enableSipTcpPort
id
:
enableSipTcpPort
}
}
}
}
}
}
Form
Line
{
FormTable
Line
{
id
:
audioRtpUdpPort
id
:
audioRtpUdpPort
readonly
property
int
defaultPort
:
7078
readonly
property
int
defaultPort
:
7078
FormGroup
{
title
:
qsTr
(
'
audioRtpUdpPortLabel
'
)
label
:
qsTr
(
'
audioRtpUdpPortLabel
'
)
PortField
{
FormTableEntry
{
readOnly
:
randomAudioRtpUdpPort
.
checked
PortField
{
supportsRange
:
true
readOnly
:
randomAudioRtpUdpPort
.
checked
text
:
SettingsModel
.
audioPortRange
.
join
(
'
:
'
)
supportsRange
:
true
text
:
SettingsModel
.
audioPortRange
.
join
(
'
:
'
)
onEditingFinished
:
SettingsModel
.
audioPortRange
=
[
portA
,
portB
]
onEditingFinished
:
SettingsModel
.
audioPortRange
=
[
portA
,
portB
]
}
}
}
}
Form
Entry
{
FormTable
Entry
{
Switch
{
Switch
{
id
:
randomAudioRtpUdpPort
id
:
randomAudioRtpUdpPort
checked
:
SettingsModel
.
audioPortRange
[
0
]
===
-
1
checked
:
SettingsModel
.
audioPortRange
[
0
]
===
-
1
onClicked
:
SettingsModel
.
audioPortRange
=
checked
onClicked
:
SettingsModel
.
audioPortRange
=
checked
?
[
audioRtpUdpPort
.
defaultPort
,
-
1
]
?
[
audioRtpUdpPort
.
defaultPort
,
-
1
]
:
[
-
1
,
-
1
]
:
[
-
1
,
-
1
]
}
}
}
}
}
}
Form
Line
{
FormTable
Line
{
id
:
videoRtpUdpPort
id
:
videoRtpUdpPort
readonly
property
int
defaultPort
:
9078
readonly
property
int
defaultPort
:
9078
FormGroup
{
title
:
qsTr
(
'
videoRtpUdpPortLabel
'
)
label
:
qsTr
(
'
videoRtpUdpPortLabel
'
)
PortField
{
FormTableEntry
{
readOnly
:
randomVideoRtpUdpPort
.
checked
PortField
{
supportsRange
:
true
readOnly
:
randomVideoRtpUdpPort
.
checked
text
:
SettingsModel
.
videoPortRange
.
join
(
'
:
'
)
supportsRange
:
true
text
:
SettingsModel
.
videoPortRange
.
join
(
'
:
'
)
onEditingFinished
:
SettingsModel
.
videoPortRange
=
[
portA
,
portB
]
onEditingFinished
:
SettingsModel
.
videoPortRange
=
[
portA
,
portB
]
}
}
}
}
Form
Entry
{
FormTable
Entry
{
Switch
{
Switch
{
id
:
randomVideoRtpUdpPort
id
:
randomVideoRtpUdpPort
checked
:
SettingsModel
.
videoPortRange
[
0
]
===
-
1
checked
:
SettingsModel
.
videoPortRange
[
0
]
===
-
1
onClicked
:
SettingsModel
.
videoPortRange
=
checked
onClicked
:
SettingsModel
.
videoPortRange
=
checked
?
[
videoRtpUdpPort
.
defaultPort
,
-
1
]
?
[
videoRtpUdpPort
.
defaultPort
,
-
1
]
:
[
-
1
,
-
1
]
:
[
-
1
,
-
1
]
}
}
}
}
}
}
}
...
@@ -304,9 +299,7 @@ TabContainer {
...
@@ -304,9 +299,7 @@ TabContainer {
}
}
FormLine
{
FormLine
{
FormGroup
{
FormGroup
{}
label
:
''
}
FormGroup
{
FormGroup
{
label
:
qsTr
(
'
turnPasswordLabel
'
)
label
:
qsTr
(
'
turnPasswordLabel
'
)
...
@@ -338,6 +331,8 @@ TabContainer {
...
@@ -338,6 +331,8 @@ TabContainer {
onEditingFinished
:
SettingsModel
.
dscpSip
=
value
onEditingFinished
:
SettingsModel
.
dscpSip
=
value
}
}
}
}
FormGroup
{}
}
}
FormLine
{
FormLine
{
...
...
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