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
241049e9
Commit
241049e9
authored
Feb 20, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(ui/modules/Common/Form/ListForm): remove "magic code"
parent
1ea9cb67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
ListForm.qml
linphone-desktop/ui/modules/Common/Form/ListForm.qml
+3
-11
No files found.
linphone-desktop/ui/modules/Common/Form/ListForm.qml
View file @
241049e9
...
...
@@ -173,19 +173,11 @@ RowLayout {
width
:
parent
.
width
onEditingFinished
:
_handleEditionFinished
(
index
,
text
)
}
Component.onCompleted
:
{
if
(
$value
.
length
===
0
)
{
// Magic code. If it's the first inserted value,
// an event or a callback steal the item focus.
// I suppose it's an internal Qt qml event...
//
// So, I choose to run a callback executed after this
// internal event.
Utils
.
setTimeout
(
listForm
,
0
,
function
()
{
Component.onCompleted
:
{
if
(
$value
.
length
===
0
)
{
textInput
.
forceActiveFocus
()
}
)
}
}
}
}
...
...
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