mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-30 18:39:23 +00:00
Fix synchro between smartsearchbar and participant list Fix showing avatar on first message burst Fix SDK missusing on addresses Fix Popup Menu location
74 lines
1.4 KiB
QML
74 lines
1.4 KiB
QML
import QtQuick 2.7
|
|
//import QtQuick.Controls 2.3
|
|
//import Qt.labs.platform 1.0
|
|
|
|
import Linphone 1.0
|
|
import Common 1.0
|
|
import Utils 1.0
|
|
// =============================================================================
|
|
|
|
Item {
|
|
id:menuParent
|
|
function open () {
|
|
menu.popup()
|
|
}
|
|
|
|
// ---------------------------------------------------------------------------
|
|
// Shortcuts.
|
|
// ---------------------------------------------------------------------------
|
|
|
|
Shortcut {
|
|
id: settingsShortcut
|
|
|
|
sequence: 'Ctrl+P'
|
|
|
|
onActivated: App.smartShowWindow(App.getSettingsWindow())
|
|
}
|
|
|
|
Shortcut {
|
|
id: quitShortcut
|
|
|
|
context: Qt.ApplicationShortcut
|
|
sequence: StandardKey.Quit
|
|
|
|
onActivated: Qt.quit()
|
|
}
|
|
|
|
Shortcut {
|
|
id: aboutShortcut
|
|
|
|
sequence: StandardKey.HelpContents
|
|
|
|
onActivated: {
|
|
window.detachVirtualWindow()
|
|
window.attachVirtualWindow(Qt.resolvedUrl('Dialogs/About.qml'))
|
|
}
|
|
}
|
|
|
|
// ---------------------------------------------------------------------------
|
|
// Menu.
|
|
// ---------------------------------------------------------------------------
|
|
|
|
Menu {
|
|
id: menu
|
|
title: qsTr('settings')
|
|
|
|
MenuItem {
|
|
text: qsTr('settings')
|
|
|
|
onTriggered: settingsShortcut.onActivated()
|
|
}
|
|
|
|
MenuItem {
|
|
text: qsTr('about')
|
|
|
|
onTriggered: aboutShortcut.onActivated()
|
|
}
|
|
|
|
MenuItem {
|
|
text: qsTr('quit')
|
|
|
|
onTriggered: quitShortcut.onActivated()
|
|
}
|
|
}
|
|
}
|