aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/canvas/stockchart/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/canvas/stockchart/main.cpp')
-rw-r--r--examples/declarative/canvas/stockchart/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/declarative/canvas/stockchart/main.cpp b/examples/declarative/canvas/stockchart/main.cpp
index fd383189b5..e10f287022 100644
--- a/examples/declarative/canvas/stockchart/main.cpp
+++ b/examples/declarative/canvas/stockchart/main.cpp
@@ -48,12 +48,12 @@ int main(int argc, char ** argv)
QApplication app(argc, argv);
qmlRegisterType<StockModel>("StockChart", 1, 0, "StockModel");
-
+ qmlRegisterType<StockPrice>("StockChart", 1, 0, "StockPrice");
QSGView view;
- view.setResizeMode(QSGView::SizeRootObjectToView);
+ view.setResizeMode(QSGView::SizeViewToRootObject);
view.setSource(QUrl("qrc:stock.qml"));
- view.show();
+ view.showFullScreen();
view.raise();
return app.exec();