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
491ceedd
Commit
491ceedd
authored
Jan 09, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ui/modules/Linphone/SmartSearchBar): handle enter pressed
parent
83dfe783
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
SearchBox.qml
tests/ui/modules/Common/SearchBox.qml
+5
-0
SmartSearchBar.qml
tests/ui/modules/Linphone/SmartSearchBar.qml
+10
-3
No files found.
tests/ui/modules/Common/SearchBox.qml
View file @
491ceedd
...
...
@@ -32,6 +32,7 @@ Item {
signal
menuClosed
signal
menuOpened
signal
enterPressed
// ---------------------------------------------------------------------------
...
...
@@ -72,6 +73,10 @@ Item {
width
:
parent
.
width
Keys.onEscapePressed
:
searchBox
.
hideMenu
()
Keys.onReturnPressed
:
{
searchBox
.
hideMenu
()
searchBox
.
enterPressed
()
}
onActiveFocusChanged
:
activeFocus
&&
searchBox
.
showMenu
()
onTextChanged
:
_filter
(
text
)
...
...
tests/ui/modules/Linphone/SmartSearchBar.qml
View file @
491ceedd
...
...
@@ -12,6 +12,12 @@ SearchBox {
// ---------------------------------------------------------------------------
readonly
property
string
interpretableSipAddress
:
SipAddressesModel
.
interpretUrl
(
searchBox
.
filter
)
// ---------------------------------------------------------------------------
signal
addContact
(
string
sipAddress
)
signal
launchChat
(
string
sipAddress
)
signal
launchCall
(
string
sipAddress
)
...
...
@@ -19,14 +25,15 @@ SearchBox {
signal
entryClicked
(
var
entry
)
// ---------------------------------------------------------------------------
onEnterPressed
:
interpretableSipAddress
.
length
>
0
&&
searchBox
.
launchCall
(
interpretableSipAddress
)
// ---------------------------------------------------------------------------
// Header.
// ---------------------------------------------------------------------------
header
:
MouseArea
{
readonly
property
string
interpretableSipAddress
:
SipAddressesModel
.
interpretUrl
(
searchBox
.
filter
)
height
:
{
var
height
=
SmartSearchBarStyle
.
header
.
addButtonHeight
...
...
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