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
2394b10e
Commit
2394b10e
authored
Mar 06, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ui/views/App/InviteFriends): refactoring, use vertical form
parent
9f7f455a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
50 deletions
+21
-50
InviteFriends.qml
linphone-desktop/ui/views/App/InviteFriends.qml
+19
-42
InviteFriendsStyle.qml
linphone-desktop/ui/views/App/Styles/InviteFriendsStyle.qml
+2
-8
No files found.
linphone-desktop/ui/views/App/InviteFriends.qml
View file @
2394b10e
import
QtQuick
2.7
import
QtQuick
.
Layouts
1.3
import
Common
1.0
...
...
@@ -36,68 +35,46 @@ DialogPlus {
height
:
InviteFriendsStyle
.
height
width
:
InviteFriendsStyle
.
width
maximumHeight
:
InviteFriendsStyle
.
height
maximumWidth
:
InviteFriendsStyle
.
width
minimumHeight
:
InviteFriendsStyle
.
height
minimumWidth
:
InviteFriendsStyle
.
width
// ---------------------------------------------------------------------------
ColumnLayout
{
Form
{
anchors
{
fill
:
parent
leftMargin
:
InviteFriendsStyle
.
leftMargin
rightMargin
:
InviteFriendsStyle
.
rightMargin
}
spacing
:
InviteFriendsStyle
.
spacing
orientation
:
Qt
.
Vertical
Column
{
Layout.fillWidth
:
true
spacing
:
InviteFriendsStyle
.
input
.
spacing
FormLine
{
FormGroup
{
label
:
qsTr
(
'
enterEmailLabel
'
)
Text
{
color
:
InviteFriendsStyle
.
input
.
legend
.
color
elide
:
Text
.
ElideRight
TextField
{
id
:
email
font
{
bold
:
true
pointSize
:
InviteFriendsStyle
.
input
.
legend
.
fontSize
inputMethodHints
:
Qt
.
ImhEmailCharactersOnly
width
:
parent
.
width
}
text
:
qsTr
(
'
enterEmailLabel
'
)
}
TextField
{
id
:
email
inputMethodHints
:
Qt
.
ImhEmailCharactersOnly
width
:
parent
.
width
}
}
ColumnLayout
{
Layout.fillHeight
:
true
Layout.fillWidth
:
true
spacing
:
InviteFriendsStyle
.
input
.
spacing
FormLine
{
FormGroup
{
label
:
qsTr
(
'
messageLabel
'
)
Text
{
color
:
InviteFriendsStyle
.
input
.
legend
.
color
elide
:
Text
.
ElideRight
TextAreaField
{
id
:
message
font
{
bold
:
true
pointSize
:
InviteFriendsStyle
.
input
.
legend
.
fontSize
height
:
InviteFriendsStyle
.
message
.
height
text
:
qsTr
(
'
defaultMessage
'
)
}
text
:
qsTr
(
'
messageLabel
'
)
}
TextAreaField
{
id
:
message
Layout.fillHeight
:
true
Layout.fillWidth
:
true
text
:
qsTr
(
'
defaultMessage
'
)
}
}
}
...
...
linphone-desktop/ui/views/App/Styles/InviteFriendsStyle.qml
View file @
2394b10e
...
...
@@ -9,15 +9,9 @@ QtObject {
property
int
height
:
316
property
int
leftMargin
:
35
property
int
rightMargin
:
35
property
int
spacing
:
15
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
}
property
QtObject
message
:
QtObject
{
property
int
height
:
140
}
}
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