diff options
Diffstat (limited to 'tradeshow/iot-sensortag/resources/base')
-rw-r--r-- | tradeshow/iot-sensortag/resources/base/TopToolbar.qml | 7 | ||||
-rw-r--r-- | tradeshow/iot-sensortag/resources/base/main.qml | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/tradeshow/iot-sensortag/resources/base/TopToolbar.qml b/tradeshow/iot-sensortag/resources/base/TopToolbar.qml index eb94cb2..fd5054d 100644 --- a/tradeshow/iot-sensortag/resources/base/TopToolbar.qml +++ b/tradeshow/iot-sensortag/resources/base/TopToolbar.qml @@ -151,7 +151,8 @@ Item { } Text { - text: Qt.formatDateTime(new Date, "dddd, MMMM d, yyyy") + property bool showAddress : false + text: showAddress ? mainWindow.addresses : Qt.formatDateTime(new Date, "dddd, MMMM d, yyyy") color: "white" anchors.bottom: parent.bottom anchors.bottomMargin: 16 @@ -160,6 +161,10 @@ Item { horizontalAlignment: Text.AlignRight font.pixelSize: Style.topToolbarSmallFontSize font.capitalization: Font.AllUppercase + MouseArea { + anchors.fill: parent + onClicked: parent.showAddress = !parent.showAddress + } } Text { diff --git a/tradeshow/iot-sensortag/resources/base/main.qml b/tradeshow/iot-sensortag/resources/base/main.qml index 2840433..6d492d5 100644 --- a/tradeshow/iot-sensortag/resources/base/main.qml +++ b/tradeshow/iot-sensortag/resources/base/main.qml @@ -59,6 +59,7 @@ Window { property DataProviderPool dataProviderPool property SeriesStorage seriesStorage property real globalBlinkOpacity: 1.0 + property string addresses : "" // Size defaults to the small display width: 1920 |