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
e017c542
Commit
e017c542
authored
Dec 23, 2016
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unstable (header of SmartSearch...)
parent
7e13551c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
12 deletions
+25
-12
SearchBox.qml
tests/ui/modules/Common/SearchBox.qml
+2
-0
SmartSearchBar.qml
tests/ui/modules/Linphone/SmartSearchBar.qml
+21
-10
MainWindowStyle.qml
tests/ui/views/App/Styles/MainWindow/MainWindowStyle.qml
+2
-2
No files found.
tests/ui/modules/Common/SearchBox.qml
View file @
e017c542
...
@@ -12,6 +12,8 @@ import Utils 1.0
...
@@ -12,6 +12,8 @@ import Utils 1.0
Item
{
Item
{
id
:
searchBox
id
:
searchBox
property
alias
header
:
menu
.
header
property
alias
delegate
:
list
.
delegate
property
alias
delegate
:
list
.
delegate
property
alias
entryHeight
:
menu
.
entryHeight
property
alias
entryHeight
:
menu
.
entryHeight
property
alias
maxMenuHeight
:
menu
.
maxMenuHeight
property
alias
maxMenuHeight
:
menu
.
maxMenuHeight
...
...
tests/ui/modules/Linphone/SmartSearchBar.qml
View file @
e017c542
...
@@ -10,6 +10,12 @@ import LinphoneUtils 1.0
...
@@ -10,6 +10,12 @@ import LinphoneUtils 1.0
SearchBox
{
SearchBox
{
id
:
searchBox
id
:
searchBox
header
:
Rectangle
{
color
:
'
#4B5964
'
height
:
40
width
:
10
}
delegate
:
Rectangle
{
delegate
:
Rectangle
{
id
:
searchBoxEntry
id
:
searchBoxEntry
...
@@ -45,24 +51,23 @@ SearchBox {
...
@@ -45,24 +51,23 @@ SearchBox {
Avatar
{
Avatar
{
id
:
avatar
id
:
avatar
Layout.preferredHeight
:
30
Layout.preferredHeight
:
30
Layout.preferredWidth
:
30
Layout.preferredWidth
:
30
image
:
$entry
.
contact
&&
$entry
.
contact
.
vcard
.
avatar
image
:
$entry
.
contact
&&
$entry
.
contact
.
vcard
.
avatar
presenceLevel
:
$entry
.
contact
?
$entry
.
contact
.
presenceLevel
:
-
1
presenceLevel
:
$entry
.
contact
?
$entry
.
contact
.
presenceLevel
:
-
1
username
:
LinphoneUtils
.
getContactUsername
(
$entry
.
contact
||
$entry
.
sipAddress
)
username
:
LinphoneUtils
.
getContactUsername
(
$entry
.
contact
||
$entry
.
sipAddress
)
}
}
Text
{
ContactDescription
{
Layout.fillHeight
:
true
Layout.fillWidth
:
true
Layout.fillWidth
:
true
color
:
'
#4B5964
'
elide
:
Text
.
ElideRight
font
{
sipAddress
:
$entry
.
sipAddress
bold
:
true
sipAddressColor
:
'
#A1A1A1
'
pointSize
:
9
username
:
avatar
.
username
}
usernameColor
:
'
#4B5964
'
text
:
$entry
.
contact
?
$entry
.
contact
.
vcard
.
username
:
$entry
.
sipAddress
}
}
// ---------------------------------------------------------------------
// ---------------------------------------------------------------------
...
@@ -88,7 +93,7 @@ SearchBox {
...
@@ -88,7 +93,7 @@ SearchBox {
searchBox
.
hideMenu
()
searchBox
.
hideMenu
()
window
.
ensureCollapsed
()
window
.
ensureCollapsed
()
window
.
setView
(
'
Conversation
'
,
{
window
.
setView
(
'
Conversation
'
,
{
sipAddress
:
$entry
.
sipAddress
||
$entry
.
vcard
.
sipAddresses
[
0
]
// FIXME: Display menu if many addresses.
sipAddress
:
$entry
.
sipAddress
})
})
}
}
}
}
...
@@ -96,6 +101,12 @@ SearchBox {
...
@@ -96,6 +101,12 @@ SearchBox {
}
}
}
}
Rectangle
{
color
:
'
#CBCBCB
'
height
:
1
width
:
parent
.
width
}
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
states
:
State
{
states
:
State
{
...
...
tests/ui/views/App/Styles/MainWindow/MainWindowStyle.qml
View file @
e017c542
...
@@ -3,7 +3,7 @@ import QtQuick 2.7
...
@@ -3,7 +3,7 @@ import QtQuick 2.7
import
Common
1.0
import
Common
1.0
// ===================================================================
// ===================================================================
==========
QtObject
{
QtObject
{
property
int
minimumHeight
:
480
property
int
minimumHeight
:
480
...
@@ -30,7 +30,7 @@ QtObject {
...
@@ -30,7 +30,7 @@ QtObject {
}
}
property
QtObject
searchBox
:
QtObject
{
property
QtObject
searchBox
:
QtObject
{
property
int
entryHeight
:
5
0
property
int
entryHeight
:
5
1
property
int
maxHeight
:
300
// See Hick's law for good choice.
property
int
maxHeight
:
300
// See Hick's law for good choice.
}
}
...
...
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