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
6565d683
Commit
6565d683
authored
May 17, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(ui/modules/Common/Form/SearchBox): use correct properties
parent
e601e3aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
15 deletions
+18
-15
SearchBox.qml
linphone-desktop/ui/modules/Common/Form/+linux/SearchBox.qml
+2
-2
SearchBox.qml
linphone-desktop/ui/modules/Common/Form/SearchBox.qml
+16
-13
No files found.
linphone-desktop/ui/modules/Common/Form/+linux/SearchBox.qml
View file @
6565d683
...
...
@@ -13,6 +13,8 @@ Item {
// ---------------------------------------------------------------------------
readonly
property
alias
filter
:
searchField
.
text
readonly
property
alias
isOpen
:
searchBox
.
_isOpen
readonly
property
var
view
:
_content
[
0
]
property
alias
entryHeight
:
menu
.
entryHeight
property
alias
maxMenuHeight
:
menu
.
maxMenuHeight
...
...
@@ -20,8 +22,6 @@ Item {
default
property
alias
_content
:
menu
.
_content
readonly
property
var
view
:
_content
[
0
]
property
bool
_isOpen
:
false
// ---------------------------------------------------------------------------
...
...
linphone-desktop/ui/modules/Common/Form/SearchBox.qml
View file @
6565d683
...
...
@@ -16,17 +16,14 @@ Item {
readonly
property
alias
filter
:
searchField
.
text
readonly
property
alias
isOpen
:
searchBox
.
_isOpen
readonly
property
var
view
:
_content
[
0
]
property
alias
delegate
:
list
.
delegate
property
alias
header
:
list
.
header
property
alias
entryHeight
:
menu
.
entryHeight
property
alias
maxMenuHeight
:
menu
.
maxMenuHeight
// This property must implement `setFilter` function.
property
alias
model
:
list
.
model
property
alias
placeholderText
:
searchField
.
placeholderText
default
property
alias
_content
:
menu
.
_content
property
bool
_isOpen
:
false
// ---------------------------------------------------------------------------
...
...
@@ -55,6 +52,7 @@ Item {
}
function
_filter
(
text
)
{
var
model
=
searchBox
.
view
.
model
Utils
.
assert
(
model
.
setFilter
!=
null
,
'
`model.setFilter` must be defined.
'
)
model
.
setFilter
(
text
)
}
...
...
@@ -130,7 +128,7 @@ Item {
DropDownDynamicMenu
{
id
:
menu
implicitHeight
:
list
.
height
implicitHeight
:
searchBox
.
view
.
height
width
:
searchField
.
width
// If the menu is focused, the main window loses the active status.
...
...
@@ -138,14 +136,19 @@ Item {
Keys.forwardTo
:
searchField
onClosed
:
searchBox
.
closeMenu
()
}
}
ScrollableListView
{
id
:
list
Binding
{
target
:
searchBox
.
view
property
:
'
width
'
value
:
searchField
.
width
}
headerPositioning
:
header
?
ListView
.
OverlayHeader
:
ListView
.
InlineFooter
width
:
menu
.
width
}
}
Binding
{
target
:
searchBox
.
view
property
:
'
headerPositioning
'
value
:
searchBox
.
view
.
header
?
ListView
.
OverlayHeader
:
ListView
.
InlineFooter
}
}
...
...
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