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
93c88e8a
Commit
93c88e8a
authored
Dec 08, 2016
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unstable
parent
507f8066
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
9 deletions
+11
-9
ListForm.qml
tests/ui/modules/Common/Form/ListForm.qml
+2
-1
ScrollableTextEdit.qml
tests/ui/modules/Common/Form/ScrollableTextEdit.qml
+4
-5
TextEdit.qml
tests/ui/modules/Common/Form/TextEdit.qml
+2
-2
ContactEdit.qml
tests/ui/views/App/MainWindow/ContactEdit.qml
+3
-1
No files found.
tests/ui/modules/Common/Form/ListForm.qml
View file @
93c88e8a
...
@@ -112,10 +112,11 @@ RowLayout {
...
@@ -112,10 +112,11 @@ RowLayout {
implicitHeight
:
textEdit
.
height
implicitHeight
:
textEdit
.
height
width
:
parent
.
width
width
:
parent
.
width
TextEdit
{
TextEdit
{
id
:
textEdit
id
:
textEdit
text
:
$value
text
:
$value
width
:
300
height
:
ListFormStyle
.
lineHeight
height
:
ListFormStyle
.
lineHeight
onEditingFinished
:
_handleEditionFinished
(
index
,
text
)
onEditingFinished
:
_handleEditionFinished
(
index
,
text
)
...
...
tests/ui/modules/Common/Form/ScrollableTextEdit.qml
View file @
93c88e8a
...
@@ -11,13 +11,13 @@ Item {
...
@@ -11,13 +11,13 @@ Item {
property
alias
font
:
textEdit
.
font
property
alias
font
:
textEdit
.
font
property
alias
color
:
textEdit
.
color
property
alias
color
:
textEdit
.
color
signal
editi
on
Finished
signal
editi
ng
Finished
// -----------------------------------------------------------------
// -----------------------------------------------------------------
function
_handleEditi
on
Finished
()
{
function
_handleEditi
ng
Finished
()
{
textEdit
.
cursorPosition
=
0
textEdit
.
cursorPosition
=
0
editi
on
Finished
()
editi
ng
Finished
()
}
}
// -----------------------------------------------------------------
// -----------------------------------------------------------------
...
@@ -66,7 +66,6 @@ Item {
...
@@ -66,7 +66,6 @@ Item {
color
:
activeFocus
&&
!
readOnly
color
:
activeFocus
&&
!
readOnly
?
TextEditStyle
.
textColor
.
focused
?
TextEditStyle
.
textColor
.
focused
:
TextEditStyle
.
textColor
.
normal
:
TextEditStyle
.
textColor
.
normal
padding
:
ListFormStyle
.
value
.
text
.
padding
selectByMouse
:
true
selectByMouse
:
true
width
:
flick
.
width
width
:
flick
.
width
wrapMode
:
Text
.
Wrap
wrapMode
:
Text
.
Wrap
...
@@ -75,7 +74,7 @@ Item {
...
@@ -75,7 +74,7 @@ Item {
Keys.onReturnPressed
:
focus
=
false
Keys.onReturnPressed
:
focus
=
false
onCursorRectangleChanged
:
flick
.
_ensureVisible
(
cursorRectangle
)
onCursorRectangleChanged
:
flick
.
_ensureVisible
(
cursorRectangle
)
onEditingFinished
:
_handleEditi
on
Finished
()
onEditingFinished
:
_handleEditi
ng
Finished
()
}
}
}
}
}
}
tests/ui/modules/Common/Form/TextEdit.qml
View file @
93c88e8a
...
@@ -5,16 +5,16 @@ import Common.Styles 1.0
...
@@ -5,16 +5,16 @@ import Common.Styles 1.0
// ===================================================================
// ===================================================================
Text
Edi
t
{
Text
Inpu
t
{
id
:
textEdit
id
:
textEdit
clip
:
true
color
:
activeFocus
&&
!
readOnly
color
:
activeFocus
&&
!
readOnly
?
TextEditStyle
.
textColor
.
focused
?
TextEditStyle
.
textColor
.
focused
:
TextEditStyle
.
textColor
.
normal
:
TextEditStyle
.
textColor
.
normal
padding
:
ListFormStyle
.
value
.
text
.
padding
padding
:
ListFormStyle
.
value
.
text
.
padding
selectByMouse
:
true
selectByMouse
:
true
verticalAlignment
:
TextEdit
.
AlignVCenter
verticalAlignment
:
TextEdit
.
AlignVCenter
wrapMode
:
Text
.
Wrap
Keys.onEscapePressed
:
focus
=
false
Keys.onEscapePressed
:
focus
=
false
Keys.onReturnPressed
:
focus
=
false
Keys.onReturnPressed
:
focus
=
false
...
...
tests/ui/views/App/MainWindow/ContactEdit.qml
View file @
93c88e8a
...
@@ -111,8 +111,10 @@ ColumnLayout {
...
@@ -111,8 +111,10 @@ ColumnLayout {
text
:
avatar
.
username
text
:
avatar
.
username
onEditi
on
Finished
:
{
onEditi
ng
Finished
:
{
_contact
.
username
=
text
_contact
.
username
=
text
// Update current text with new username.
text
=
_contact
.
username
text
=
_contact
.
username
}
}
}
}
...
...
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