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
c811ece5
Commit
c811ece5
authored
May 16, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ui/modules/Common/Menus): Big API changes, better and cleaner
parent
4fa94882
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
177 additions
and
129 deletions
+177
-129
resources.qrc
linphone-desktop/resources.qrc
+5
-5
SearchBox.qml
linphone-desktop/ui/modules/Common/Form/+linux/SearchBox.qml
+8
-8
SearchBox.qml
linphone-desktop/ui/modules/Common/Form/SearchBox.qml
+12
-12
ActionMenu.qml
linphone-desktop/ui/modules/Common/Menus/ActionMenu.qml
+0
-15
ApplicationMenu.qml
linphone-desktop/ui/modules/Common/Menus/ApplicationMenu.qml
+15
-15
DropDownDynamicMenu.qml
...e-desktop/ui/modules/Common/Menus/DropDownDynamicMenu.qml
+12
-8
DropDownStaticMenu.qml
...ne-desktop/ui/modules/Common/Menus/DropDownStaticMenu.qml
+61
-0
DropDownStaticMenuEntry.qml
...sktop/ui/modules/Common/Menus/DropDownStaticMenuEntry.qml
+7
-7
DesktopPopup.qml
linphone-desktop/ui/modules/Common/Popup/DesktopPopup.qml
+11
-11
Popup.qml
linphone-desktop/ui/modules/Common/Popup/Popup.qml
+10
-8
ApplicationMenuStyle.qml
...p/ui/modules/Common/Styles/Menus/ApplicationMenuStyle.qml
+0
-0
DropDownStaticMenuStyle.qml
...i/modules/Common/Styles/Menus/DropDownStaticMenuStyle.qml
+0
-0
qmldir
linphone-desktop/ui/modules/Common/Styles/qmldir
+2
-2
qmldir
linphone-desktop/ui/modules/Common/qmldir
+3
-3
Calls.qml
linphone-desktop/ui/modules/Linphone/Calls/Calls.qml
+12
-16
SipAddressesMenu.qml
...ne-desktop/ui/modules/Linphone/Menus/SipAddressesMenu.qml
+3
-3
SmartSearchBar.qml
...top/ui/modules/Linphone/SmartSearchBar/SmartSearchBar.qml
+8
-8
Incall.js
linphone-desktop/ui/views/App/Calls/Incall.js
+1
-1
Incall.qml
linphone-desktop/ui/views/App/Calls/Incall.qml
+1
-1
ContactEdit.qml
linphone-desktop/ui/views/App/Main/ContactEdit.qml
+1
-1
Contacts.qml
linphone-desktop/ui/views/App/Main/Contacts.qml
+3
-3
MainWindow.js
linphone-desktop/ui/views/App/Main/MainWindow.js
+1
-1
MainWindow.qml
linphone-desktop/ui/views/App/Main/MainWindow.qml
+1
-1
No files found.
linphone-desktop/resources.qrc
View file @
c811ece5
...
...
@@ -221,10 +221,10 @@
<file>
ui/modules/Common/Image/Icon.qml
</file>
<file>
ui/modules/Common/Image/RoundedImage.qml
</file>
<file>
ui/modules/Common/Indicators/VuMeter.qml
</file>
<file>
ui/modules/Common/Menus/ActionMenuEntry.qml
</file>
<file>
ui/modules/Common/Menus/ActionMenu.qml
</file>
<file>
ui/modules/Common/Menus/ApplicationMenu.qml
</file>
<file>
ui/modules/Common/Menus/DropDownDynamicMenu.qml
</file>
<file>
ui/modules/Common/Menus/Menu.qml
</file>
<file>
ui/modules/Common/Menus/DropDownStaticMenuEntry.qml
</file>
<file>
ui/modules/Common/Menus/DropDownStaticMenu.qml
</file>
<file>
ui/modules/Common/Misc/Borders.qml
</file>
<file>
ui/modules/Common/Misc/Collapse.qml
</file>
<file>
ui/modules/Common/Misc/ForceScrollBar.qml
</file>
...
...
@@ -261,8 +261,8 @@
<file>
ui/modules/Common/Styles/Form/Tab/TabContainerStyle.qml
</file>
<file>
ui/modules/Common/Styles/Form/TransparentTextInputStyle.qml
</file>
<file>
ui/modules/Common/Styles/Indicators/VuMeterStyle.qml
</file>
<file>
ui/modules/Common/Styles/Menus/A
c
tionMenuStyle.qml
</file>
<file>
ui/modules/Common/Styles/Menus/MenuStyle.qml
</file>
<file>
ui/modules/Common/Styles/Menus/A
pplica
tionMenuStyle.qml
</file>
<file>
ui/modules/Common/Styles/Menus/
DropDownStatic
MenuStyle.qml
</file>
<file>
ui/modules/Common/Styles/Misc/CollapseStyle.qml
</file>
<file>
ui/modules/Common/Styles/Misc/ForceScrollBarStyle.qml
</file>
<file>
ui/modules/Common/Styles/Misc/PanedStyle.qml
</file>
...
...
linphone-desktop/ui/modules/Common/Form/+linux/SearchBox.qml
View file @
c811ece5
...
...
@@ -33,7 +33,7 @@ Item {
// ---------------------------------------------------------------------------
function
hid
eMenu
()
{
function
clos
eMenu
()
{
if
(
!
_isOpen
)
{
return
}
...
...
@@ -41,7 +41,7 @@ Item {
_isOpen
=
false
}
function
show
Menu
()
{
function
open
Menu
()
{
if
(
_isOpen
)
{
return
}
...
...
@@ -68,16 +68,16 @@ Item {
icon
:
'
search
'
width
:
parent
.
width
Keys.onEscapePressed
:
searchBox
.
hid
eMenu
()
Keys.onEscapePressed
:
searchBox
.
clos
eMenu
()
Keys.onReturnPressed
:
{
searchBox
.
hid
eMenu
()
searchBox
.
clos
eMenu
()
searchBox
.
enterPressed
()
}
onActiveFocusChanged
:
{
if
(
activeFocus
&&
!
_isOpen
)
{
searchBox
.
menuRequested
()
searchBox
.
show
Menu
()
searchBox
.
open
Menu
()
}
}
...
...
@@ -96,7 +96,7 @@ Item {
// So It's necessary to map the keys events.
Keys.forwardTo
:
searchField
on
MenuClosed
:
searchBox
.
hid
eMenu
()
on
Closed
:
searchBox
.
clos
eMenu
()
ScrollableListView
{
id
:
list
...
...
@@ -121,7 +121,7 @@ Item {
ScriptAction
{
script
:
{
menu
.
show
()
menu
.
open
()
searchBox
.
menuOpened
()
}
...
...
@@ -134,7 +134,7 @@ Item {
ScriptAction
{
script
:
{
menu
.
hid
e
()
menu
.
clos
e
()
searchField
.
focus
=
false
searchBox
.
menuClosed
()
...
...
linphone-desktop/ui/modules/Common/Form/SearchBox.qml
View file @
c811ece5
...
...
@@ -38,7 +38,7 @@ Item {
// ---------------------------------------------------------------------------
function
hid
eMenu
()
{
function
clos
eMenu
()
{
if
(
!
_isOpen
)
{
return
}
...
...
@@ -46,7 +46,7 @@ Item {
_isOpen
=
false
}
function
show
Menu
()
{
function
open
Menu
()
{
if
(
_isOpen
)
{
return
}
...
...
@@ -60,7 +60,7 @@ Item {
}
function
_handleCoords
()
{
searchBox
.
hid
eMenu
()
searchBox
.
clos
eMenu
()
var
point
=
searchBox
.
mapToItem
(
null
,
0
,
searchBox
.
height
)
...
...
@@ -82,16 +82,16 @@ Item {
icon
:
'
search
'
width
:
parent
.
width
Keys.onEscapePressed
:
searchBox
.
hid
eMenu
()
Keys.onEscapePressed
:
searchBox
.
clos
eMenu
()
Keys.onReturnPressed
:
{
searchBox
.
hid
eMenu
()
searchBox
.
clos
eMenu
()
searchBox
.
enterPressed
()
}
onActiveFocusChanged
:
{
if
(
activeFocus
&&
!
_isOpen
)
{
searchBox
.
menuRequested
()
searchBox
.
show
Menu
()
searchBox
.
open
Menu
()
}
}
...
...
@@ -118,7 +118,7 @@ Item {
requestActivate
:
true
onVisibleChanged
:
!
visible
&&
searchBox
.
hid
eMenu
()
onVisibleChanged
:
!
visible
&&
searchBox
.
clos
eMenu
()
DropDownDynamicMenu
{
id
:
menu
...
...
@@ -127,7 +127,7 @@ Item {
// So It's necessary to map the keys events.
Keys.forwardTo
:
searchField
on
MenuClosed
:
searchBox
.
hid
eMenu
()
on
Closed
:
searchBox
.
clos
eMenu
()
ScrollableListView
{
id
:
list
...
...
@@ -153,8 +153,8 @@ Item {
ScriptAction
{
script
:
{
menu
.
show
()
desktopPopup
.
show
()
menu
.
open
()
desktopPopup
.
open
()
searchBox
.
menuOpened
()
}
...
...
@@ -167,9 +167,9 @@ Item {
ScriptAction
{
script
:
{
menu
.
hid
e
()
menu
.
clos
e
()
searchField
.
focus
=
false
desktopPopup
.
hid
e
()
desktopPopup
.
clos
e
()
searchBox
.
menuClosed
()
}
...
...
linphone-desktop/ui/modules/Common/Menus/ActionMenu.qml
deleted
100644 → 0
View file @
4fa94882
import
QtQuick
2.7
import
QtQuick
.
Layouts
1.3
import
Common
.
Styles
1.0
// =============================================================================
ColumnLayout
{
id
:
menu
spacing
:
ActionMenuStyle
.
spacing
property
int
entryHeight
property
int
entryWidth
}
linphone-desktop/ui/modules/Common/Menus/Menu.qml
→
linphone-desktop/ui/modules/Common/Menus/
Application
Menu.qml
View file @
c811ece5
...
...
@@ -35,7 +35,7 @@ Rectangle {
// ---------------------------------------------------------------------------
color
:
MenuStyle
.
backgroundColor
color
:
Application
MenuStyle
.
backgroundColor
implicitHeight
:
content
.
height
width
:
entryWidth
...
...
@@ -43,19 +43,19 @@ Rectangle {
id
:
content
anchors.centerIn
:
parent
spacing
:
MenuStyle
.
spacing
spacing
:
Application
MenuStyle
.
spacing
Repeater
{
model
:
entries
Rectangle
{
color
:
mouseArea
.
pressed
?
MenuStyle
.
entry
.
color
.
pressed
?
Application
MenuStyle
.
entry
.
color
.
pressed
:
(
_selectedEntry
===
index
?
MenuStyle
.
entry
.
color
.
selected
?
Application
MenuStyle
.
entry
.
color
.
selected
:
(
mouseArea
.
containsMouse
?
MenuStyle
.
entry
.
color
.
hovered
:
MenuStyle
.
entry
.
color
.
normal
?
Application
MenuStyle
.
entry
.
color
.
hovered
:
Application
MenuStyle
.
entry
.
color
.
normal
)
)
height
:
menu
.
entryHeight
...
...
@@ -64,13 +64,13 @@ Rectangle {
RowLayout
{
anchors
{
left
:
parent
.
left
leftMargin
:
MenuStyle
.
entry
.
leftMargin
leftMargin
:
Application
MenuStyle
.
entry
.
leftMargin
right
:
parent
.
right
rightMargin
:
MenuStyle
.
entry
.
rightMargin
rightMargin
:
Application
MenuStyle
.
entry
.
rightMargin
verticalCenter
:
parent
.
verticalCenter
}
spacing
:
MenuStyle
.
entry
.
spacing
spacing
:
Application
MenuStyle
.
entry
.
spacing
Icon
{
icon
:
modelData
.
icon
+
(
...
...
@@ -78,15 +78,15 @@ Rectangle {
?
'
_selected
'
:
'
_normal
'
)
iconSize
:
MenuStyle
.
entry
.
iconSize
iconSize
:
Application
MenuStyle
.
entry
.
iconSize
}
Text
{
Layout.fillWidth
:
true
color
:
_selectedEntry
===
index
?
MenuStyle
.
entry
.
text
.
color
.
selected
:
MenuStyle
.
entry
.
text
.
color
.
normal
font.pointSize
:
MenuStyle
.
entry
.
text
.
fontSize
?
Application
MenuStyle
.
entry
.
text
.
color
.
selected
:
Application
MenuStyle
.
entry
.
text
.
color
.
normal
font.pointSize
:
Application
MenuStyle
.
entry
.
text
.
fontSize
height
:
parent
.
height
text
:
modelData
.
entryName
verticalAlignment
:
Text
.
AlignVCenter
...
...
@@ -100,9 +100,9 @@ Rectangle {
height
:
parent
.
height
color
:
_selectedEntry
===
index
?
MenuStyle
.
entry
.
indicator
.
color
?
Application
MenuStyle
.
entry
.
indicator
.
color
:
'
transparent
'
width
:
MenuStyle
.
entry
.
indicator
.
width
width
:
Application
MenuStyle
.
entry
.
indicator
.
width
}
MouseArea
{
...
...
linphone-desktop/ui/modules/Common/Menus/DropDownDynamicMenu.qml
View file @
c811ece5
...
...
@@ -22,17 +22,17 @@ Item {
// ---------------------------------------------------------------------------
signal
menuC
losed
signal
menuO
pened
signal
c
losed
signal
o
pened
// ---------------------------------------------------------------------------
function
show
()
{
popup
.
show
()
function
open
()
{
popup
.
open
()
}
function
hid
e
()
{
popup
.
hid
e
()
function
clos
e
()
{
popup
.
clos
e
()
}
// ---------------------------------------------------------------------------
...
...
@@ -63,11 +63,15 @@ Item {
// ---------------------------------------------------------------------------
visible
:
false
// ---------------------------------------------------------------------------
Popup
{
id
:
popup
on
Shown
:
menu
.
menuO
pened
()
on
Hidden
:
menu
.
menuC
losed
()
on
Opened
:
menu
.
o
pened
()
on
Closed
:
menu
.
c
losed
()
Item
{
id
:
menuContent
...
...
linphone-desktop/ui/modules/Common/Menus/DropDownStaticMenu.qml
0 → 100644
View file @
c811ece5
import
QtQuick
2.7
import
QtQuick
.
Layouts
1.3
import
Common
1.0
import
Common
.
Styles
1.0
// =============================================================================
Item
{
id
:
menu
// ---------------------------------------------------------------------------
property
alias
relativeTo
:
popup
.
relativeTo
property
alias
relativeX
:
popup
.
relativeX
property
alias
relativeY
:
popup
.
relativeY
property
alias
entryHeight
:
menuContent
.
entryHeight
property
alias
entryWidth
:
menuContent
.
entryWidth
default
property
alias
_content
:
menuContent
.
data
// ---------------------------------------------------------------------------
signal
closed
signal
opened
// ---------------------------------------------------------------------------
function
open
()
{
popup
.
open
()
}
function
close
()
{
popup
.
close
()
}
// ---------------------------------------------------------------------------
visible
:
false
// ---------------------------------------------------------------------------
Popup
{
id
:
popup
onOpened
:
menu
.
opened
()
onClosed
:
menu
.
closed
()
ColumnLayout
{
id
:
menuContent
property
int
entryHeight
property
int
entryWidth
spacing
:
DropDownStaticMenuStyle
.
spacing
height
:
menu
.
_content
.
length
width
:
menu
.
entryWidth
}
}
}
linphone-desktop/ui/modules/Common/Menus/
Action
MenuEntry.qml
→
linphone-desktop/ui/modules/Common/Menus/
DropDownStatic
MenuEntry.qml
View file @
c811ece5
...
...
@@ -12,10 +12,10 @@ Rectangle {
signal
clicked
color
:
mouseArea
.
pressed
?
Action
MenuStyle
.
entry
.
color
.
pressed
?
DropDownStatic
MenuStyle
.
entry
.
color
.
pressed
:
(
mouseArea
.
containsMouse
?
Action
MenuStyle
.
entry
.
color
.
hovered
:
Action
MenuStyle
.
entry
.
color
.
normal
?
DropDownStatic
MenuStyle
.
entry
.
color
.
hovered
:
DropDownStatic
MenuStyle
.
entry
.
color
.
normal
)
height
:
parent
.
entryHeight
width
:
parent
.
entryWidth
...
...
@@ -25,14 +25,14 @@ Rectangle {
anchors
{
left
:
parent
.
left
leftMargin
:
Action
MenuStyle
.
entry
.
leftMargin
leftMargin
:
DropDownStatic
MenuStyle
.
entry
.
leftMargin
right
:
parent
.
right
rightMargin
:
Action
MenuStyle
.
entry
.
rightMargin
rightMargin
:
DropDownStatic
MenuStyle
.
entry
.
rightMargin
}
color
:
Action
MenuStyle
.
entry
.
text
.
color
color
:
DropDownStatic
MenuStyle
.
entry
.
text
.
color
elide
:
Text
.
ElideRight
font.pointSize
:
Action
MenuStyle
.
entry
.
text
.
fontSize
font.pointSize
:
DropDownStatic
MenuStyle
.
entry
.
text
.
fontSize
height
:
parent
.
height
verticalAlignment
:
Text
.
AlignVCenter
...
...
linphone-desktop/ui/modules/Common/Popup/DesktopPopup.qml
View file @
c811ece5
...
...
@@ -10,24 +10,24 @@ Item {
// ---------------------------------------------------------------------------
property
alias
popupX
:
popup
.
x
property
alias
popupY
:
popup
.
y
property
alias
popupX
:
window
.
x
property
alias
popupY
:
window
.
y
property
bool
requestActivate
:
false
property
int
flags
:
Qt
.
SplashScreen
readonly
property
alias
popupWidth
:
popup
.
width
readonly
property
alias
popupHeight
:
popup
.
height
readonly
property
alias
popupWidth
:
window
.
width
readonly
property
alias
popupHeight
:
window
.
height
default
property
alias
_content
:
content
.
data
property
bool
_isOpen
:
false
// ---------------------------------------------------------------------------
function
show
()
{
function
open
()
{
_isOpen
=
true
}
function
hid
e
()
{
function
clos
e
()
{
_isOpen
=
false
}
...
...
@@ -45,7 +45,7 @@ Item {
y
:
0
Window
{
id
:
popup
id
:
window
// Used for internal purposes only. Like Notifications.
objectName
:
'
__internalWindow
'
...
...
@@ -70,7 +70,7 @@ Item {
PropertyChanges
{
opacity
:
1.0
target
:
popup
target
:
window
}
}
...
...
@@ -81,10 +81,10 @@ Item {
ScriptAction
{
script
:
{
popup
.
showNormal
()
window
.
showNormal
()
if
(
wrapper
.
requestActivate
)
{
popup
.
requestActivate
()
window
.
requestActivate
()
}
}
}
...
...
@@ -95,7 +95,7 @@ Item {
to
:
''
ScriptAction
{
script
:
popup
.
hide
()
script
:
window
.
hide
()
}
}
]
...
...
linphone-desktop/ui/modules/Common/Popup/Popup.qml
View file @
c811ece5
...
...
@@ -18,14 +18,12 @@ Item {
// ---------------------------------------------------------------------------
signal
hidden
signal
shown
signal
closed
signal
opened
// ---------------------------------------------------------------------------
visible
:
false
function
show
()
{
function
open
()
{
if
(
popup
.
visible
)
{
return
}
...
...
@@ -51,7 +49,7 @@ Item {
popup
.
open
()
}
function
hid
e
()
{
function
clos
e
()
{
if
(
!
popup
.
visible
)
{
return
}
...
...
@@ -64,6 +62,10 @@ Item {
// ---------------------------------------------------------------------------
visible
:
false
// ---------------------------------------------------------------------------
Controls.Popup
{
id
:
popup
...
...
@@ -85,7 +87,7 @@ Item {
Component.onCompleted
:
parent
=
Utils
.
getTopParent
(
this
)
onClosed
:
wrapper
.
hidden
()
onOpened
:
wrapper
.
shown
()
onClosed
:
wrapper
.
closed
()
onOpened
:
wrapper
.
opened
()
}
}
linphone-desktop/ui/modules/Common/Styles/Menus/MenuStyle.qml
→
linphone-desktop/ui/modules/Common/Styles/Menus/
Application
MenuStyle.qml
View file @
c811ece5
File moved
linphone-desktop/ui/modules/Common/Styles/Menus/
Action
MenuStyle.qml
→
linphone-desktop/ui/modules/Common/Styles/Menus/
DropDownStatic
MenuStyle.qml
View file @
c811ece5
File moved
linphone-desktop/ui/modules/Common/Styles/qmldir
View file @
c811ece5
...
...
@@ -40,8 +40,8 @@ singleton TabContainerStyle 1.0 Form/Tab/TabContainerStyle.qml
singleton VuMeterStyle 1.0 Indicators/VuMeterStyle.qml
singleton A
ctionMenuStyle 1.0 Menus/Ac
tionMenuStyle.qml
singleton
MenuStyle 1.0 Menus/
MenuStyle.qml
singleton A
pplicationMenuStyle 1.0 Menus/Applica
tionMenuStyle.qml
singleton
DropDownStaticMenuStyle 1.0 Menus/DropDownStatic
MenuStyle.qml
singleton CollapseStyle 1.0 Misc/CollapseStyle.qml
singleton ForceScrollBarStyle 1.0 Misc/ForceScrollBarStyle.qml
...
...
linphone-desktop/ui/modules/Common/qmldir
View file @
c811ece5
...
...
@@ -61,10 +61,10 @@ RoundedImage 1.0 Image/RoundedImage.qml
VuMeter 1.0 Indicators/VuMeter.qml
ActionMenu 1.0 Menus/ActionMenu.qml
ActionMenuEntry 1.0 Menus/ActionMenuEntry.qml
ApplicationMenu 1.0 Menus/ApplicationMenu.qml
DropDownDynamicMenu 1.0 Menus/DropDownDynamicMenu.qml
Menu 1.0 Menus/Menu.qml
DropDownStaticMenu 1.0 Menus/DropDownStaticMenu.qml
DropDownStaticMenuEntry 1.0 Menus/DropDownStaticMenuEntry.qml
Borders 1.0 Misc/Borders.qml
Collapse 1.0 Misc/Collapse.qml
...
...
linphone-desktop/ui/modules/Linphone/Calls/Calls.qml
View file @
c811ece5
...
...
@@ -59,30 +59,26 @@ ListView {
:
'
burger_menu
'
iconSize
:
CallsStyle
.
entry
.
iconMenuSize
onClicked
:
popup
.
show
()
onClicked
:
menu
.
open
()
Popup
{
id
:
popup
DropDownStaticMenu
{
id
:
menu
relativeTo
:
callControls
relativeX
:
callControls
.
width
ActionMenu
{
id
:
actionMenu
entryHeight
:
CallsStyle
.
entry
.
height
entryWidth
:
CallsStyle
.
entry
.
width
entryHeight
:
CallsStyle
.
entry
.
height
entryWidth
:
CallsStyle
.
entry
.
width
Repeater
{
model
:
params
.
actions
Repeater
{
model
:
params
.
actions
DropDownStaticMenuEntry
{
entryName
:
modelData
.
name
ActionMenuEntry
{
entryName
:
modelData
.
name
onClicked
:
{
popup
.
hide
()
params
.
actions
[
index
].
handler
()
}
onClicked
:
{
menu
.
close
()
params
.
actions
[
index
].
handler
()
}
}
}
...
...
linphone-desktop/ui/modules/Linphone/Menus/SipAddressesMenu.qml
View file @
c811ece5
...
...
@@ -18,7 +18,7 @@ Item {
// ---------------------------------------------------------------------------
function
show
()
{
function
open
()
{
var
length
=
sipAddresses
.
length
if
(
!
length
)
{
return
...
...
@@ -28,7 +28,7 @@ Item {
return
sipAddressesMenu
.
sipAddressClicked
(
sipAddresses
[
0
])
}
menu
.
show
()
menu
.
open
()
}
function
_fillModel
()
{
...
...
@@ -104,7 +104,7 @@ Item {
hoverEnabled
:
true
onClicked
:
{
menu
.
hid
e
()
menu
.
clos
e
()
sipAddressesMenu
.
sipAddressClicked
(
$sipAddress
)
}
}
...
...
linphone-desktop/ui/modules/Linphone/SmartSearchBar/SmartSearchBar.qml
View file @
c811ece5
...
...
@@ -91,7 +91,7 @@ SearchBox {
ActionButton
{
icon
:
'
video_call
'
onClicked
:
{
searchBox
.
hid
eMenu
()
searchBox
.
clos
eMenu
()
searchBox
.
launchVideoCall
(
interpretableSipAddress
)
}
}
...
...
@@ -99,7 +99,7 @@ SearchBox {
ActionButton
{
icon
:
'
call
'
onClicked
:
{
searchBox
.
hid
eMenu
()
searchBox
.
clos
eMenu
()
searchBox
.
launchCall
(
interpretableSipAddress
)
}
}
...
...
@@ -107,7 +107,7 @@ SearchBox {
ActionButton
{
icon
:
'
chat
'
onClicked
:
{
searchBox
.
hid
eMenu
()
searchBox
.
clos
eMenu
()
searchBox
.
launchChat
(
interpretableSipAddress
)
}
}
...
...
@@ -127,7 +127,7 @@ SearchBox {
width
:
parent
.
width
onClicked
:
{
searchBox
.
hid
eMenu
()
searchBox
.
clos
eMenu
()
searchBox
.
addContact
(
interpretableSipAddress
)
}
...
...
@@ -218,7 +218,7 @@ SearchBox {
hoverEnabled
:
true
onClicked
:
{
searchBox
.
hid
eMenu
()
searchBox
.
clos
eMenu
()
searchBox
.
entryClicked
(
$entry
)
}
}
...
...
@@ -234,7 +234,7 @@ SearchBox {
ActionButton
{
icon
:
'
video_call
'
onClicked
:
{
searchBox
.
hid
eMenu
()
searchBox
.
clos
eMenu
()
searchBox
.
launchVideoCall
(
$entry
.
sipAddress
)
}
}
...
...
@@ -242,7 +242,7 @@ SearchBox {
ActionButton
{
icon
:
'
call
'
onClicked
:
{
searchBox
.
hid
eMenu
()
searchBox
.
clos
eMenu
()
searchBox
.
launchCall
(
$entry
.
sipAddress
)
}
}
...
...
@@ -250,7 +250,7 @@ SearchBox {
ActionButton
{
icon
:
'
chat
'
onClicked
:
{
searchBox
.
hid
eMenu
()
searchBox
.
clos
eMenu
()
searchBox
.
launchChat
(
$entry
.
sipAddress
)
}
}
...
...
linphone-desktop/ui/views/App/Calls/Incall.js
View file @
c811ece5
...
...
@@ -24,7 +24,7 @@ function handleStatusChanged (status) {
}
telKeypad
.
visible
=
false
callStatistics
.
hid
e
()
callStatistics
.
clos
e
()
}
}
...
...
linphone-desktop/ui/views/App/Calls/Incall.qml
View file @
c811ece5
...
...
@@ -70,7 +70,7 @@ Rectangle {
iconSize
:
CallStyle
.
header
.
iconSize
useStates
:
false
onClicked
:
callStatistics
.
show
()
onClicked
:
callStatistics
.
open
()
// See: http://www.linphone.org/docs/liblinphone/group__call__misc.html#ga62c7d3d08531b0cc634b797e273a0a73
Timer
{
...
...
linphone-desktop/ui/views/App/Main/ContactEdit.qml
View file @
c811ece5
...
...
@@ -123,7 +123,7 @@ ColumnLayout {
ActionButton
{
icon
:
'
history
'
onClicked
:
sipAddressesMenu
.
showMenu
()
onClicked
:
sipAddressesMenu
.
open
()
}
}
...
...
linphone-desktop/ui/views/App/Main/Contacts.qml
View file @
c811ece5
...
...
@@ -132,17 +132,17 @@ ColumnLayout {
ActionButton
{
icon
:
'
video_call
'
onClicked
:
actions
.
itemAt
(
0
).
show
()
onClicked
:
actions
.
itemAt
(
0
).
open
()
}
ActionButton
{
icon
:
'
call
'
onClicked
:
actions
.
itemAt
(
1
).
show
()
onClicked
:
actions
.
itemAt
(
1
).
open
()
}
ActionButton
{
icon
:
'
chat
'
onClicked
:
actions
.
itemAt
(
2
).
show
()
onClicked
:
actions
.
itemAt
(
2
).
open
()
}
}
...
...
linphone-desktop/ui/views/App/Main/MainWindow.js
View file @
c811ece5
...
...
@@ -13,7 +13,7 @@ function handleActiveFocusItemChanged (activeFocusItem) {
var
smartSearchBar
=
window
.
_smartSearchBar
if
(
activeFocusItem
==
null
&&
smartSearchBar
)
{
smartSearchBar
.
hid
eMenu
()
smartSearchBar
.
clos
eMenu
()
}
}
...
...
linphone-desktop/ui/views/App/Main/MainWindow.qml
View file @
c811ece5
...
...
@@ -204,7 +204,7 @@ ApplicationWindow {
spacing
:
0
Menu
{
Application
Menu
{
id
:
menu
entryHeight
:
MainWindowStyle
.
menu
.
entryHeight
...
...
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