diff options
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() + } } - } } |