mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-28 17:29:19 +00:00
- Refit texts in search bars. - Fix title text in conversation's devices window - Fix burger button view (stay selected)
86 lines
1.6 KiB
QML
86 lines
1.6 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
|
|
property bool isOpenned: menu.visible
|
|
function open () {
|
|
menu.popup()
|
|
}
|
|
function close(){
|
|
menu.close()
|
|
}
|
|
|
|
// ---------------------------------------------------------------------------
|
|
// 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 {
|
|
//: 'Check for updates' : Item menu for checking updates
|
|
text: qsTr('checkForUpdates')
|
|
|
|
onTriggered: App.checkForUpdates(true)
|
|
}
|
|
|
|
MenuItem {
|
|
text: qsTr('about')
|
|
|
|
onTriggered: aboutShortcut.onActivated()
|
|
}
|
|
|
|
MenuItem {
|
|
text: qsTr('quit')
|
|
|
|
onTriggered: quitShortcut.onActivated()
|
|
}
|
|
}
|
|
}
|