diff options
author | Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> | 2017-11-30 10:24:37 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2018-01-31 08:27:04 +0000 |
commit | 283a0bba8bad0dc8c7f52ad827974895b3370a0e (patch) | |
tree | 3595ca4bc2e302558022bded0c480f3e0e76e7a0 /examples/quick/demos/stocqt/content/StockSettingsPanel.qml | |
parent | 6eaa95662c2d4ba287ac5d1de5ec49bd3a9f59e6 (diff) |
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 <shawn.rutledge@qt.io>
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'examples/quick/demos/stocqt/content/StockSettingsPanel.qml')
-rw-r--r-- | examples/quick/demos/stocqt/content/StockSettingsPanel.qml | 12 |
1 files changed, 8 insertions, 4 deletions
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 } } |