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
83bf254d
Commit
83bf254d
authored
Mar 06, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ui/views/App/ManageAccounts): refactoring, use now a vertical form
parent
45542488
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
35 deletions
+18
-35
Form.qml
linphone-desktop/ui/modules/Common/Form/Placements/Form.qml
+1
-0
ManageAccounts.qml
linphone-desktop/ui/views/App/ManageAccounts.qml
+17
-26
ManageAccountsStyle.qml
linphone-desktop/ui/views/App/Styles/ManageAccountsStyle.qml
+0
-9
No files found.
linphone-desktop/ui/modules/Common/Form/Placements/Form.qml
View file @
83bf254d
...
...
@@ -17,6 +17,7 @@ Column {
ColumnLayout
{
spacing
:
FormStyle
.
header
.
spacing
visible
:
parent
.
title
.
length
>
0
width
:
parent
.
width
Text
{
...
...
linphone-desktop/ui/views/App/ManageAccounts.qml
View file @
83bf254d
import
QtQuick
2.7
import
QtQuick
.
Layouts
1.3
import
Common
1.0
import
Linphone
1.0
...
...
@@ -31,39 +30,31 @@ DialogPlus {
// ---------------------------------------------------------------------------
Column
{
Form
{
orientation
:
Qt
.
Vertical
anchors
{
fill
:
paren
t
left
:
parent
.
lef
t
leftMargin
:
ManageAccountsStyle
.
leftMargin
right
:
parent
.
right
rightMargin
:
ManageAccountsStyle
.
rightMargin
}
spacing
:
ManageAccountsStyle
.
input
.
spacing
Text
{
color
:
ManageAccountsStyle
.
input
.
legend
.
color
elide
:
Text
.
ElideRight
font
{
bold
:
true
pointSize
:
ManageAccountsStyle
.
input
.
legend
.
fontSize
}
text
:
qsTr
(
'
selectAccountLabel
'
)
}
ComboBox
{
id
:
email
FormLine
{
FormGroup
{
label
:
qsTr
(
'
selectAccountLabel
'
)
currentIndex
:
Utils
.
findIndex
(
AccountSettingsModel
.
accounts
,
function
(
account
)
{
return
account
.
sipAddress
===
AccountSettingsModel
.
sipAddress
})
ComboBox
{
currentIndex
:
Utils
.
findIndex
(
AccountSettingsModel
.
accounts
,
function
(
account
)
{
return
account
.
sipAddress
===
AccountSettingsModel
.
sipAddress
})
model
:
AccountSettingsModel
.
accounts
textRole
:
'
sipAddress
'
width
:
parent
.
width
model
:
AccountSettingsModel
.
accounts
textRole
:
'
sipAddress
'
onActivated
:
AccountSettingsModel
.
setDefaultProxyConfig
(
model
[
index
].
proxyConfig
)
onActivated
:
AccountSettingsModel
.
setDefaultProxyConfig
(
model
[
index
].
proxyConfig
)
}
}
}
}
}
linphone-desktop/ui/views/App/Styles/ManageAccountsStyle.qml
View file @
83bf254d
...
...
@@ -10,13 +10,4 @@ QtObject {
property
int
leftMargin
:
35
property
int
rightMargin
:
35
property
int
width
:
480
property
QtObject
input
:
QtObject
{
property
int
spacing
:
6
property
QtObject
legend
:
QtObject
{
property
color
color
:
Colors
.
j
property
int
fontSize
:
10
}
}
}
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