diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-05-20 04:31:09 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-05-20 04:31:09 (GMT) |
commit | 99f6250a4ac031b70757442715b226bc339ab699 (patch) | |
tree | ae7fd462b5255a0ed8cef079716f64749bc02e9c /examples/declarative/cppextensions/qgraphicslayouts/layoutItem/main.cpp | |
parent | 178a4e12da0601ecc662851e5bf7f124932e1a12 (diff) | |
parent | e75088323ae15604139ddfd66b85cc3b8d43abeb (diff) | |
download | Qt-99f6250a4ac031b70757442715b226bc339ab699.zip Qt-99f6250a4ac031b70757442715b226bc339ab699.tar.gz Qt-99f6250a4ac031b70757442715b226bc339ab699.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-qml: (53 commits)
Be consistent in conversion from string (eg. color, int rounding).
Simplify code to make next change clearer.
Stop warnings.
Improve error messages when tests fail.
Stop highlight animators for highlightFollowsCurrentItem: false
Ensure valuetype enums can be assigned from JS
Improve testcase
Rename Component::errorsString() -> errorString() (and also for
Fixes for docs, example code
Make test more stable
Autotest (XFAIL) for QTBUG-10822
Add return value for resolveTypeInNamespace
Fix test
Fix test. Missed files.
Missing break
Create overview page for examples for Extending QML in C++
Search for QML import libraries also in application directory
Doc improvements
Disable mouse-based selection in TextInput/TextEdit
Rename qml executable to qmlviewer
...
Diffstat (limited to 'examples/declarative/cppextensions/qgraphicslayouts/layoutItem/main.cpp')
-rw-r--r-- | examples/declarative/cppextensions/qgraphicslayouts/layoutItem/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/declarative/cppextensions/qgraphicslayouts/layoutItem/main.cpp b/examples/declarative/cppextensions/qgraphicslayouts/layoutItem/main.cpp index a104251..47d3a23 100644 --- a/examples/declarative/cppextensions/qgraphicslayouts/layoutItem/main.cpp +++ b/examples/declarative/cppextensions/qgraphicslayouts/layoutItem/main.cpp @@ -53,6 +53,7 @@ int main(int argc, char* argv[]) { QApplication app(argc, argv); + //Set up a graphics scene with a QGraphicsWidget and Layout QGraphicsView view; QGraphicsScene scene; @@ -61,6 +62,7 @@ int main(int argc, char* argv[]) widget->setLayout(layout); scene.addItem(widget); view.setScene(&scene); + //Add the QML snippet into the layout QDeclarativeEngine engine; QDeclarativeComponent c(&engine, QUrl(":layoutItem.qml")); |