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
83dfe783
Commit
83dfe783
authored
Jan 09, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ui/modules/Linphone/SmartSearchBar): handle click on entries
parent
208c28a9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
7 deletions
+28
-7
SearchBox.qml
tests/ui/modules/Common/SearchBox.qml
+1
-5
SmartSearchBar.qml
tests/ui/modules/Linphone/SmartSearchBar.qml
+20
-2
MainWindow.qml
tests/ui/views/App/MainWindow/MainWindow.qml
+7
-0
No files found.
tests/ui/modules/Common/SearchBox.qml
View file @
83dfe783
...
...
@@ -52,11 +52,7 @@ Item {
}
function
_filter
(
text
)
{
Utils
.
assert
(
model
.
setFilter
!=
null
,
'
`model.setFilter` must be defined.
'
)
Utils
.
assert
(
model
.
setFilter
!=
null
,
'
`model.setFilter` must be defined.
'
)
model
.
setFilter
(
text
)
}
...
...
tests/ui/modules/Linphone/SmartSearchBar.qml
View file @
83dfe783
...
...
@@ -17,12 +17,16 @@ SearchBox {
signal
launchCall
(
string
sipAddress
)
signal
launchVideoCall
(
string
sipAddress
)
signal
entryClicked
(
var
entry
)
// ---------------------------------------------------------------------------
// Header.
// ---------------------------------------------------------------------------
header
:
MouseArea
{
readonly
property
string
interpretableSipAddress
:
SipAddressesModel
.
interpretUrl
(
searchBox
.
filter
)
readonly
property
string
interpretableSipAddress
:
SipAddressesModel
.
interpretUrl
(
searchBox
.
filter
)
height
:
{
var
height
=
SmartSearchBarStyle
.
header
.
addButtonHeight
...
...
@@ -31,7 +35,7 @@ SearchBox {
width
:
parent
.
width
// Workaround to handle mouse.
// Without it, the mouse can be given to items list when
it
is hover header.
// Without it, the mouse can be given to items list when
mouse
is hover header.
hoverEnabled
:
true
Column
{
...
...
@@ -195,6 +199,20 @@ SearchBox {
Layout.fillHeight
:
true
Layout.fillWidth
:
true
entry
:
$entry
MouseArea
{
anchors.fill
:
parent
cursorShape
:
containsMouse
?
Qt
.
PointingHandCursor
:
Qt
.
ArrowCursor
hoverEnabled
:
true
onClicked
:
{
searchBox
.
hideMenu
()
searchBox
.
entryClicked
(
$entry
)
}
}
}
// -------------------------------------------------------------------
...
...
tests/ui/views/App/MainWindow/MainWindow.qml
View file @
83dfe783
...
...
@@ -167,6 +167,13 @@ ApplicationWindow {
})
}
onLaunchVideoCall
:
CallsWindow
.
show
()
onEntryClicked
:
{
window
.
ensureCollapsed
()
window
.
setView
(
entry
.
contact
?
'
ContactEdit
'
:
'
Conversation
'
,
{
sipAddress
:
entry
.
sipAddress
})
}
}
}
}
...
...
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