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
07da8b53
Commit
07da8b53
authored
Jun 14, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(ui/modules/Common/Form/SearchBox): emit enter pressed before closed signal
parent
f7d8f6ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
SearchBox.qml
linphone-desktop/ui/modules/Common/Form/SearchBox.qml
+1
-1
SmartSearchBar.qml
...top/ui/modules/Linphone/SmartSearchBar/SmartSearchBar.qml
+14
-14
No files found.
linphone-desktop/ui/modules/Common/Form/SearchBox.qml
View file @
07da8b53
...
...
@@ -69,8 +69,8 @@ Item {
Keys.onEscapePressed
:
searchBox
.
closeMenu
()
Keys.onReturnPressed
:
{
searchBox
.
closeMenu
()
searchBox
.
enterPressed
()
searchBox
.
closeMenu
()
}
onActiveFocusChanged
:
{
...
...
linphone-desktop/ui/modules/Linphone/SmartSearchBar/SmartSearchBar.qml
View file @
07da8b53
...
...
@@ -6,11 +6,11 @@ import Linphone.Styles 1.0
// =============================================================================
SearchBox
{
id
:
searchB
ar
id
:
searchB
ox
// ---------------------------------------------------------------------------
readonly
property
alias
isOpen
:
searchB
ar
.
_isOpen
readonly
property
alias
isOpen
:
searchB
ox
.
_isOpen
// ---------------------------------------------------------------------------
...
...
@@ -29,7 +29,7 @@ SearchBox {
onEnterPressed
:
{
var
sipAddress
=
view
.
interpretableSipAddress
return
sipAddress
.
length
>
0
&&
searchB
ar
.
launchCall
(
sipAddress
)
return
sipAddress
.
length
>
0
&&
searchB
ox
.
launchCall
(
sipAddress
)
}
// ---------------------------------------------------------------------------
...
...
@@ -40,37 +40,37 @@ SearchBox {
actions
:
[{
icon
:
'
video_call
'
,
handler
:
function
(
entry
)
{
searchB
ar
.
closeMenu
()
searchB
ar
.
launchVideoCall
(
entry
.
sipAddress
)
searchB
ox
.
closeMenu
()
searchB
ox
.
launchVideoCall
(
entry
.
sipAddress
)
}
},
{
icon
:
'
call
'
,
handler
:
function
(
entry
)
{
searchB
ar
.
closeMenu
()
searchB
ar
.
launchCall
(
entry
.
sipAddress
)
searchB
ox
.
closeMenu
()
searchB
ox
.
launchCall
(
entry
.
sipAddress
)
}
},
{
icon
:
'
chat
'
,
handler
:
function
(
entry
)
{
searchB
ar
.
closeMenu
()
searchB
ar
.
launchChat
(
entry
.
sipAddress
)
searchB
ox
.
closeMenu
()
searchB
ox
.
launchChat
(
entry
.
sipAddress
)
}
}]
headerButtonDescription
:
qsTr
(
'
addContact
'
)
headerButtonIcon
:
'
contact_add
'
headerButtonAction
:
(
function
(
sipAddress
)
{
searchB
ar
.
closeMenu
()
searchB
ar
.
addContact
(
sipAddress
)
searchB
ox
.
closeMenu
()
searchB
ox
.
addContact
(
sipAddress
)
})
genSipAddress
:
searchB
ar
.
filter
genSipAddress
:
searchB
ox
.
filter
model
:
SipAddressesProxyModel
{}
onEntryClicked
:
{
searchB
ar
.
closeMenu
()
searchB
ar
.
entryClicked
(
entry
)
searchB
ox
.
closeMenu
()
searchB
ox
.
entryClicked
(
entry
)
}
}
}
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