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
cb1bf9a0
Commit
cb1bf9a0
authored
Sep 20, 2016
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(mainWindow/contact): view in progress
parent
d67d8116
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
ListForm.qml
tests/ui/components/form/ListForm.qml
+7
-5
No files found.
tests/ui/components/form/ListForm.qml
View file @
cb1bf9a0
...
...
@@ -18,11 +18,8 @@ RowLayout {
Layout.preferredHeight
:
16
Layout.preferredWidth
:
16
onClicked
:
{
console
.
log
(
valuesModel
.
get
(
valuesModel
.
count
-
1
).
$value
.
length
)
if
(
valuesModel
.
count
===
0
||
valuesModel
.
get
(
valuesModel
.
count
-
1
).
$value
.
length
!==
0
)
{
valuesModel
.
get
(
valuesModel
.
count
-
1
).
$value
.
length
!==
0
)
{
valuesModel
.
append
({
$value
:
''
})
}
}
...
...
@@ -60,7 +57,8 @@ RowLayout {
color
:
textEdit
.
focus
?
'
#E6E6E6
'
:
'
transparent
'
id
:
background
implicitHeight
:
textEdit
.
height
implicitWidth
:
textEdit
.
contentWidth
+
textEdit
.
padding
*
2
implicitWidth
:
textEdit
.
contentWidth
+
textEdit
.
padding
*
2
}
Text
{
...
...
@@ -92,6 +90,10 @@ RowLayout {
onEditingFinished
:
{
if
(
text
.
length
===
0
)
{
valuesModel
.
remove
(
index
)
}
else
{
// textEdit.text is not the same value than
// valuesModel.get(index)
valuesModel
.
set
(
index
,
{
$value
:
text
})
}
// Hack: The edition is finished but the focus
...
...
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