From 283a0bba8bad0dc8c7f52ad827974895b3370a0e Mon Sep 17 00:00:00 2001 From: Venugopal Shivashankar Date: Thu, 30 Nov 2017 10:24:37 +0100 Subject: Example: Switch to offine dataset - Added offline dataset from quandl instead of the Google finance API - Reduced the no. of stocks - Removed the JS library as it was not required with the offline dataset - Updated documentation and application's image to reflect the change Task-number: QTBUG-64432 Change-Id: I4d117de71ab07bf9b2654f5d61afc3ed0e9ce084 Reviewed-by: Shawn Rutledge Reviewed-by: Mitch Curtis --- examples/quick/demos/stocqt/content/StockSettingsPanel.qml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'examples/quick/demos/stocqt/content/StockSettingsPanel.qml') diff --git a/examples/quick/demos/stocqt/content/StockSettingsPanel.qml b/examples/quick/demos/stocqt/content/StockSettingsPanel.qml index 086eb2e8b6..48a77d8495 100644 --- a/examples/quick/demos/stocqt/content/StockSettingsPanel.qml +++ b/examples/quick/demos/stocqt/content/StockSettingsPanel.qml @@ -56,10 +56,10 @@ Rectangle { id: root color: "transparent" - property bool drawOpenPrice: openButton.buttonEnabled - property bool drawClosePrice: closeButton.buttonEnabled - property bool drawHighPrice: highButton.buttonEnabled - property bool drawLowPrice: lowButton.buttonEnabled + property bool drawOpenPrice: false + property bool drawClosePrice: false + property bool drawHighPrice: true + property bool drawLowPrice: true property string openColor: "#face20" property string closeColor: "#14aaff" @@ -95,6 +95,7 @@ Rectangle { CheckBox { id: openButton buttonEnabled: false + onButtonEnabledChanged: drawOpenPrice = buttonEnabled Layout.rightMargin: 10 } @@ -114,6 +115,7 @@ Rectangle { CheckBox { id: closeButton buttonEnabled: false + onButtonEnabledChanged: drawClosePrice = buttonEnabled Layout.rightMargin: 10 } @@ -133,6 +135,7 @@ Rectangle { CheckBox { id: highButton buttonEnabled: true + onButtonEnabledChanged: drawHighPrice = buttonEnabled Layout.rightMargin: 10 } @@ -153,6 +156,7 @@ Rectangle { CheckBox { id: lowButton buttonEnabled: true + onButtonEnabledChanged: drawLowPrice = buttonEnabled Layout.rightMargin: 10 } } -- cgit v1.2.3