Skip to content
Snippets Groups Projects
Commit aa7b3794 authored by Kali Kaneko's avatar Kali Kaneko
Browse files

undo qualified namespace

parent 74bffa3b
No related branches found
No related tags found
No related merge requests found
......@@ -377,6 +377,8 @@ endif
#########################################################################
# packaging action
#########################################################################
run:
./build/qt/release/riseup-vpn
builder_image:
@make -C docker build
......
......@@ -16,7 +16,8 @@ MessageDialog {
if (ctx.loginDialog == 'true') {
login.visible = true
} else {
// FIXME - we probably want to distinguish
// FIXME - we probably want to distinguish
// fatal from recoverable errors. For the time being
// we can avoid quitting so that people can try reconnects if it's
// a network problem, it's confusing to quit the app.
......
import QtQuick 2.9
import QtQuick.Controls 1.4
import QtQuick.Window 2.2
import QtQuick.Dialogs 1.2
import QtQuick.Layouts 1.0
import QtQuick.Extras 1.2
import Qt.labs.platform 1.1 as LabsPlatform
import QtQuick.Controls 1.4
ApplicationWindow {
//import QtQuick.Extras 1.2
import Qt.labs.platform 1.0
//as LabsPlatform
Window {
id: app
visible: true
width: 300
......@@ -229,7 +230,7 @@ ApplicationWindow {
id: vpn
}
LabsPlatform.SystemTrayIcon {
SystemTrayIcon {
id: systray
visible: systrayVisible
......@@ -239,7 +240,12 @@ ApplicationWindow {
systray.activatedSignal()
}
menu: LabsPlatform.Menu {
/* the systray menu cannot be buried in a child qml file because
* otherwise the ids are not available
* from other components
*/
menu: Menu {
id: systrayMenu
......@@ -253,13 +259,61 @@ ApplicationWindow {
}
}
LabsPlatform.MenuItem {
MenuItem {
id: statusItem
text: qsTr("Checking status…")
enabled: false
}
LabsPlatform.MenuItem {
MenuItem {
id: autoSelectionItem
text: qsTr("automatic")
checkable: true
checked: true
enabled: false
}
/* a minimal segfault for submenu */
// Menu {}
/* this segfaults too (but it's the way to do dynamic item creation */
/*
Menu {
id: manualGatewaysSubmenu
title: qsTr("Manual Gateways")
enabled: true
Instantiator {
id: manualGatewayInstantiator
//model: settings.recentFiles
delegate: MenuItem {
text: "test gateway"
}
onObjectAdded: manualGatewaysSubmenu.insertItem(index, object)
onObjectRemoved: manualGatewaysSubmenu.removeItem(object)
}
MenuSeparator {}
}
*/
MenuSeparator {}
MenuItem {
id: manualSelectionItem
text: qsTr("Pick gateway…")
checkable: true
checked: false
enabled: true
}
MenuSeparator {}
MenuItem {
text: {
if (vpn.state == "failed")
qsTr("Reconnect")
......@@ -273,7 +327,7 @@ ApplicationWindow {
|| ctx.status == "failed") : false
}
LabsPlatform.MenuItem {
MenuItem {
text: {
if (ctx && ctx.status == "starting")
qsTr("Cancel")
......@@ -287,9 +341,9 @@ ApplicationWindow {
|| ctx.status == "failed") : false
}
LabsPlatform.MenuSeparator {}
MenuSeparator {}
LabsPlatform.MenuItem {
MenuItem {
text: qsTr("About…")
onTriggered: {
about.visible = true
......@@ -298,7 +352,7 @@ ApplicationWindow {
}
}
LabsPlatform.MenuItem {
MenuItem {
id: donateItem
text: qsTr("Donate…")
visible: ctx ? ctx.donateURL : false
......@@ -307,9 +361,9 @@ ApplicationWindow {
}
}
LabsPlatform.MenuSeparator {}
MenuSeparator {}
LabsPlatform.MenuItem {
MenuItem {
text: qsTr("Help…")
onTriggered: {
......@@ -318,7 +372,7 @@ ApplicationWindow {
}
}
LabsPlatform.MenuItem {
MenuItem {
text: qsTr("Report a bug…")
onTriggered: {
......@@ -328,9 +382,9 @@ ApplicationWindow {
}
}
LabsPlatform.MenuSeparator {}
MenuSeparator {}
LabsPlatform.MenuItem {
MenuItem {
text: qsTr("Quit")
onTriggered: backend.quit()
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment