From ba42ff33c9d84bf8da482e673f61e9d1de33e1a3 Mon Sep 17 00:00:00 2001 From: Maurice Kalinowski Date: Wed, 27 Sep 2017 13:06:15 +0200 Subject: iot-sensortag: Add logging window This is most useful in the embedded use-case. Usually there is no debug connection and initialization of a bluetooth connection can take very long. Change-Id: If5b6e8a6e684d2340d6a52b8b21bec25630d6874 Reviewed-by: Oliver Wolff --- .../iot-sensortag/resources/base/TopToolbar.qml | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'tradeshow/iot-sensortag/resources/base/TopToolbar.qml') diff --git a/tradeshow/iot-sensortag/resources/base/TopToolbar.qml b/tradeshow/iot-sensortag/resources/base/TopToolbar.qml index 6e5d9d2..69722b7 100644 --- a/tradeshow/iot-sensortag/resources/base/TopToolbar.qml +++ b/tradeshow/iot-sensortag/resources/base/TopToolbar.qml @@ -67,6 +67,26 @@ Item { visible: true } + Image { + id: logWindow + source: "images/bg_blue.jpg" + x: sensorItem.x + y: topToolbar.height + width: Math.min(mainWindow.width, 600) + height: Math.min(mainWindow.height - topToolbar.height, 400) + anchors.horizontalCenter: parent.horizontalCenter + visible: false + Text { + clip: true + color: "white" + font.pixelSize: 26 + text: mainWindow.loggingOutput ? mainWindow.loggingOutput : "...debug..." + anchors.fill: parent + anchors.margins: 15 + } + } + + Item { id: sensorItem height: topToolbar.height @@ -134,6 +154,10 @@ Item { font.pixelSize: Style.topToolbarLargeFontSize anchors.horizontalCenter: parent.horizontalCenter anchors.bottom: parent.bottom + MouseArea { + anchors.fill: parent + onClicked: clickBait.activate(logWindow) + } } Timer { -- cgit v1.2.3