diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2021-03-17 17:15:19 +0100 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-05-04 14:58:39 +0200 |
commit | 76cacf3d60e3dbfcb6fcb82558d9d79f6d068fb8 (patch) | |
tree | 8a9a06e9748836d47a67465be470d70e1a808060 /gui/qml | |
parent | 8d616ba53416e5ca6205e9e29a2b3b0fc625f2d1 (diff) |
wip: select by city from the gui
Diffstat (limited to 'gui/qml')
-rw-r--r-- | gui/qml/main.qml | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/gui/qml/main.qml b/gui/qml/main.qml index fd5421a..9a0e111 100644 --- a/gui/qml/main.qml +++ b/gui/qml/main.qml @@ -4,10 +4,8 @@ import QtQuick.Dialogs 1.2 import QtQuick.Layouts 1.0 import QtQuick.Controls 1.4 -//import QtQuick.Extras 1.2 import Qt.labs.platform 1.0 -//as LabsPlatform Window { id: app visible: true @@ -90,6 +88,7 @@ Window { target: jsonModel onDataChanged: { ctx = JSON.parse(jsonModel.getJson()) + console.debug(jsonModel.getJson()) gwSelector.model = Object.keys(ctx.gateways) if (ctx.donateDialog == 'true') { @@ -277,29 +276,6 @@ Window { /* 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 { |