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
533d57fd
Commit
533d57fd
authored
May 17, 2017
by
Sylvain Berfini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed shortcuts display in menu
parent
652ad4a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
36 deletions
+43
-36
MainWindowMenuBar.qml
linphone-desktop/ui/views/App/Main/MainWindowMenuBar.qml
+43
-36
No files found.
linphone-desktop/ui/views/App/Main/MainWindowMenuBar.qml
View file @
533d57fd
...
...
@@ -15,6 +15,43 @@ Item {
menu
.
open
()
}
// ---------------------------------------------------------------------------
// Shortcuts.
// ---------------------------------------------------------------------------
Shortcut
{
id
:
settings_shortcut
sequence
:
StandardKey
.
Preferences
onActivated
:
{
var
window
=
App
.
getSettingsWindow
()
if
(
window
.
visibility
===
Window
.
Minimized
)
{
window
.
visibility
=
Window
.
AutomaticVisibility
}
else
{
window
.
setVisible
(
true
)
}
}
}
Shortcut
{
id
:
quit_shortcut
sequence
:
StandardKey
.
Quit
context
:
Qt
.
ApplicationShortcut
onActivated
:
Qt
.
quit
()
}
Shortcut
{
id
:
about_shortcut
sequence
:
StandardKey
.
HelpContents
onActivated
:
{
window
.
detachVirtualWindow
()
window
.
attachVirtualWindow
(
Qt
.
resolvedUrl
(
'
About.qml
'
))
}
}
// ---------------------------------------------------------------------------
// Menu.
// ---------------------------------------------------------------------------
Menu
{
id
:
menu
...
...
@@ -22,40 +59,19 @@ Item {
title
:
qsTr
(
'
options
'
)
MenuItem
{
shortcut
:
Shortcut
{
sequence
:
StandardKey
.
Preferences
onActivated
:
{
var
window
=
App
.
getSettingsWindow
()
if
(
window
.
visibility
===
Window
.
Minimized
)
{
window
.
visibility
=
Window
.
AutomaticVisibility
}
else
{
window
.
setVisible
(
true
)
}
}
}
shortcut
:
settings_shortcut
.
sequence
text
:
qsTr
(
'
settings
'
)
onTriggered
:
{
var
window
=
App
.
getSettingsWindow
()
if
(
window
.
visibility
===
Window
.
Minimized
)
{
window
.
visibility
=
Window
.
AutomaticVisibility
}
else
{
window
.
setVisible
(
true
)
}
}
onTriggered
:
settings_shortcut
.
onActivated
()
}
MenuSeparator
{}
MenuItem
{
shortcut
:
Shortcut
{
sequence
:
StandardKey
.
Quit
context
:
Qt
.
ApplicationShortcut
onActivated
:
Qt
.
quit
()
}
shortcut
:
quit_shortcut
.
sequence
text
:
qsTr
(
'
quit
'
)
onTriggered
:
Qt
.
quit
()
onTriggered
:
quit_shortcut
.
onActivated
()
}
}
...
...
@@ -81,19 +97,10 @@ Item {
title
:
qsTr
(
'
help
'
)
MenuItem
{
shortcut
:
Shortcut
{
sequence
:
StandardKey
.
HelpContents
onActivated
:
{
window
.
detachVirtualWindow
()
window
.
attachVirtualWindow
(
Qt
.
resolvedUrl
(
'
About.qml
'
))
}
}
shortcut
:
about_shortcut
.
sequence
text
:
qsTr
(
'
about
'
)
onTriggered
:
{
window
.
detachVirtualWindow
()
window
.
attachVirtualWindow
(
Qt
.
resolvedUrl
(
'
About.qml
'
))
}
onTriggered
:
about_shortcut
.
onActivated
()
}
MenuSeparator
{}
...
...
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