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
46e9c13b
Commit
46e9c13b
authored
Apr 21, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ui/views/App/Main/Home): add tooltips, disable `how to use linphone` component
parent
70631b9d
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
77 additions
and
9 deletions
+77
-9
en.ts
linphone-desktop/assets/languages/en.ts
+15
-0
fr.ts
linphone-desktop/assets/languages/fr.ts
+14
-0
SearchBox.qml
linphone-desktop/ui/modules/Common/Form/SearchBox.qml
+1
-0
TooltipArea.qml
linphone-desktop/ui/modules/Common/Tooltip/TooltipArea.qml
+13
-2
SmartSearchBar.qml
...top/ui/modules/Linphone/SmartSearchBar/SmartSearchBar.qml
+2
-0
Home.qml
linphone-desktop/ui/views/App/Main/Home.qml
+19
-7
MainWindow.qml
linphone-desktop/ui/views/App/Main/MainWindow.qml
+13
-0
No files found.
linphone-desktop/assets/languages/en.ts
View file @
46e9c13b
...
...
@@ -698,6 +698,21 @@ Server url not configured.</translation>
<
source
>
autoAnswerStatus
<
/source
>
<
translation
>
auto
<
/translation
>
<
/message
>
<
message
>
<
source
>
menuTooltip
<
/source
>
<
translation
>
Access
to
your
contact
list
and
add
new
contacts
.
<
/translation
>
<
/message
>
<
message
>
<
source
>
smartSearchBarTooltip
<
/source
>
<
translation
>
Use
the
search
bar
to
directly
start
audio
and
video
calls
,
start
a
chat
or
add
a
new
contact
.
Just
enter
your
friend
&
apos
;
s
SIP
address
or
username
.
<
/translation
>
<
/message
>
<
message
>
<
source
>
timelineTooltip
<
/source
>
<
translation
>
Click
on
one
of
your
last
exchange
to
chat
or
see
the
conversation
history
.
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
MainWindowMenuBar
<
/name
>
...
...
linphone-desktop/assets/languages/fr.ts
View file @
46e9c13b
...
...
@@ -698,6 +698,20 @@ Url du serveur non configurée.</translation>
<
source
>
autoAnswerStatus
<
/source
>
<
translation
>
auto
<
/translation
>
<
/message
>
<
message
>
<
source
>
menuTooltip
<
/source
>
<
translation
>
Acc
é
der
à
votre
liste
de
contacts
,
en
ajouter
...
<
/translation
>
<
/message
>
<
message
>
<
source
>
smartSearchBarTooltip
<
/source
>
<
translation
>
Utiliser
la
barre
de
recherche
intelligente
pour
lancer
des
appels
audio
et
vid
é
o
,
un
chat
ou
ajouter
un
contact
.
<
/translation
>
<
/message
>
<
message
>
<
source
>
timelineTooltip
<
/source
>
<
translation
>
Cliquer
sur
une
entr
é
e
pour
voir
vos
derniers
é
changes
,
chatter
ou
voir
l
&
apos
;
historique
de
conversation
.
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
MainWindowMenuBar
<
/name
>
...
...
linphone-desktop/ui/modules/Common/Form/SearchBox.qml
View file @
46e9c13b
...
...
@@ -15,6 +15,7 @@ Item {
// ---------------------------------------------------------------------------
readonly
property
alias
filter
:
searchField
.
text
readonly
property
alias
isOpen
:
searchBox
.
_isOpen
property
alias
delegate
:
list
.
delegate
property
alias
header
:
list
.
header
...
...
linphone-desktop/ui/modules/Common/Tooltip/TooltipArea.qml
View file @
46e9c13b
...
...
@@ -4,7 +4,8 @@ import QtQuick 2.7
MouseArea
{
property
alias
text
:
tooltip
.
text
property
var
tooltipParent
:
this
property
bool
force
:
false
property
var
tooltipParent
:
parent
property
bool
_visible
:
false
...
...
@@ -23,6 +24,16 @@ MouseArea {
id
:
tooltip
parent
:
tooltipParent
visible
:
_visible
visible
:
_visible
||
force
delay
:
-
1
timeout
:
-
1
// Workaround to always display tooltip.
onVisibleChanged
:
{
if
(
!
visible
&&
force
)
{
tooltip
.
visible
=
true
}
}
}
}
linphone-desktop/ui/modules/Linphone/SmartSearchBar/SmartSearchBar.qml
View file @
46e9c13b
...
...
@@ -16,6 +16,8 @@ SearchBox {
searchBox
.
filter
)
readonly
property
alias
isOpen
:
searchBox
.
_isOpen
// ---------------------------------------------------------------------------
signal
addContact
(
string
sipAddress
)
...
...
linphone-desktop/ui/views/App/Main/Home.qml
View file @
46e9c13b
...
...
@@ -12,6 +12,17 @@ import App.Styles 1.0
Rectangle
{
color
:
HomeStyle
.
color
// TODO: Remove me when smart tooltip will be available.
Component
{
Item
{
property
var
i18n
:
[
QT_TR_NOOP
(
'
showTooltips
'
),
QT_TR_NOOP
(
'
howToDescription
'
),
QT_TR_NOOP
(
'
howToTitle
'
)
]
}
}
ListView
{
anchors.horizontalCenter
:
parent
.
horizontalCenter
boundsBehavior
:
Flickable
.
StopAtBounds
...
...
@@ -26,13 +37,14 @@ Rectangle {
}
model
:
ListModel
{
ListElement
{
$component
:
'
checkBox
'
$componentText
:
qsTr
(
'
showTooltips
'
)
$description
:
qsTr
(
'
howToDescription
'
)
$icon
:
'
home_use_linphone
'
$title
:
qsTr
(
'
howToTitle
'
)
}
// TODO: Uncomment me when smart tooltip will be available.
// ListElement {
// $component: 'checkBox'
// $componentText: qsTr('showTooltips')
// $description: qsTr('howToDescription')
// $icon: 'home_use_linphone'
// $title: qsTr('howToTitle')
// }
ListElement
{
$component
:
'
button
'
...
...
linphone-desktop/ui/views/App/Main/MainWindow.qml
View file @
46e9c13b
...
...
@@ -177,6 +177,11 @@ ApplicationWindow {
})
onLaunchVideoCall
:
CallsListModel
.
launchVideoCall
(
sipAddress
)
TooltipArea
{
text
:
qsTr
(
'
smartSearchBarTooltip
'
)
visible
:
!
smartSearchBar
.
isOpen
}
}
}
}
...
...
@@ -213,6 +218,10 @@ ApplicationWindow {
}]
onEntrySelected
:
!
entry
?
setView
(
'
Home
'
)
:
setView
(
'
Contacts
'
)
TooltipArea
{
text
:
qsTr
(
'
menuTooltip
'
)
}
}
// History.
...
...
@@ -224,6 +233,10 @@ ApplicationWindow {
model
:
TimelineModel
onEntrySelected
:
setView
(
'
Conversation
'
,
{
sipAddress
:
entry
})
TooltipArea
{
text
:
qsTr
(
'
timelineTooltip
'
)
}
}
}
...
...
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