diff options
author | Maurice Kalinowski <maurice.kalinowski@qt.io> | 2017-02-15 11:58:01 +0100 |
---|---|---|
committer | Titta Heikkala <titta.heikkala@qt.io> | 2017-02-16 08:05:16 +0000 |
commit | c8ce4940c5be641b753ef943cf336963596705a4 (patch) | |
tree | d81cdce08c8daae30bc50951239530dc3d189608 /tradeshow/iot-sensortag/resources/base/main.qml | |
parent | 90e26ea85564f22458dbec138e91e8078371f8b2 (diff) |
Move series updates to C++
Instead of jumping to and from the QML engine for each sensor update,
rather stay inside C++ and let QML only do the visual updates.
This only updates the items which use Charts, as updates to a series is
expensive.
Change-Id: Idc7a98d2865e7095264f226c0ac5bbb5a977d18a
Reviewed-by: Titta Heikkala <titta.heikkala@qt.io>
Diffstat (limited to 'tradeshow/iot-sensortag/resources/base/main.qml')
-rw-r--r-- | tradeshow/iot-sensortag/resources/base/main.qml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tradeshow/iot-sensortag/resources/base/main.qml b/tradeshow/iot-sensortag/resources/base/main.qml index 679a8dc..c55d8ee 100644 --- a/tradeshow/iot-sensortag/resources/base/main.qml +++ b/tradeshow/iot-sensortag/resources/base/main.qml @@ -50,12 +50,14 @@ import QtQuick 2.6 import QtQuick.Window 2.0 import SensorTag.DataProvider 1.0 +import SensorTag.SeriesStorage 1.0 Window { id: mainWindow property alias contentFile: contentLoader.source property DataProviderPool dataProviderPool + property SeriesStorage seriesStorage // Size defaults to the small display width: 1920 |