diff options
author | Jens Bache-Wiig <jens.bache-wiig@digia.com> | 2012-12-13 19:16:13 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-12-13 20:43:59 +0100 |
commit | 93c7cf2cbc650d1590037d86f8eba6d0be029159 (patch) | |
tree | e54a77727f885789222b3b6588b2015862a3f559 /examples/quick/demos/stocqt/stocqt.qml | |
parent | 47d97fe72bff0bfd4e2a32ecb7850502cf0a82d5 (diff) |
Clean up the StockQt demo
I cleaned up the whitespace, property declarations and removed
some console output. No changes to the functionality or design.
Change-Id: I499f6d061e43bf2e187eebc026858b3abd21a9b0
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Reviewed-by: Alan Alpert <aalpert@rim.com>
Diffstat (limited to 'examples/quick/demos/stocqt/stocqt.qml')
-rw-r--r-- | examples/quick/demos/stocqt/stocqt.qml | 98 |
1 files changed, 49 insertions, 49 deletions
diff --git a/examples/quick/demos/stocqt/stocqt.qml b/examples/quick/demos/stocqt/stocqt.qml index 3f8a84a810..13c15d5397 100644 --- a/examples/quick/demos/stocqt/stocqt.qml +++ b/examples/quick/demos/stocqt/stocqt.qml @@ -42,60 +42,60 @@ import QtQuick 2.0 import "./content" ListView { - id:root - width:320 - height:480 - snapMode:ListView.SnapOneItem - focus:false - orientation : ListView.Horizontal - boundsBehavior : Flickable.StopAtBounds - currentIndex : 1 + id: root + width: 320 + height: 480 + snapMode: ListView.SnapOneItem + focus: false + orientation: ListView.Horizontal + boundsBehavior: Flickable.StopAtBounds + currentIndex: 1 - StockModel { - id:stock - stockId:listView.currentStockId - stockName: listView.currentStockName - startDate: settings.startDate - endDate:settings.endDate - onStockIdChanged: updateStock() - onStartDateChanged: updateStock() - onEndDateChanged: updateStock() - onDataReady: { - root.currentIndex = 1 - stockView.update() + StockModel { + id: stock + stockId: listView.currentStockId + stockName: listView.currentStockName + startDate: settings.startDate + endDate: settings.endDate + onStockIdChanged: updateStock() + onStartDateChanged: updateStock() + onEndDateChanged: updateStock() + onDataReady: { + root.currentIndex = 1 + stockView.update() + } } - } - model: VisualItemModel { - StockListView { - id:listView - width:root.width - height:root.height - } + model: VisualItemModel { + StockListView { + id: listView + width: root.width + height: root.height + } - StockView { - id:stockView - width:root.width - height:root.height - stocklist : listView - settings : settings - stock: stock + StockView { + id: stockView + width: root.width + height: root.height + stocklist: listView + settings: settings + stock: stock - onListViewClicked:root.currentIndex = 0 - onSettingsClicked:root.currentIndex = 2 - } + onListViewClicked: root.currentIndex = 0 + onSettingsClicked: root.currentIndex = 2 + } - StockSettings { - id:settings - width:root.width - height:root.height - onDrawHighPriceChanged: stockView.update() - onDrawLowPriceChanged: stockView.update() - onDrawOpenPriceChanged: stockView.update() - onDrawClosePriceChanged: stockView.update() - onDrawVolumeChanged: stockView.update() - onDrawKLineChanged: stockView.update() - onChartTypeChanged: stockView.update() + StockSettings { + id: settings + width: root.width + height: root.height + onDrawHighPriceChanged: stockView.update() + onDrawLowPriceChanged: stockView.update() + onDrawOpenPriceChanged: stockView.update() + onDrawClosePriceChanged: stockView.update() + onDrawVolumeChanged: stockView.update() + onDrawKLineChanged: stockView.update() + onChartTypeChanged: stockView.update() + } } - } } |