summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-12-10 06:04:25 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-12-10 06:04:25 (GMT)
commit4768a1ee67945e09d7f94cf881eb9c4a56e9c969 (patch)
tree938783a50f745c16156a15a0323c344b38ef90f9 /examples
parenta02104fec44e2ea1953f73881d4d6c6cf12974e4 (diff)
parent94d45cc06dabb8b1f8fc98e9f9b3dfaf49d0c4d7 (diff)
downloadQt-4768a1ee67945e09d7f94cf881eb9c4a56e9c969.zip
Qt-4768a1ee67945e09d7f94cf881eb9c4a56e9c969.tar.gz
Qt-4768a1ee67945e09d7f94cf881eb9c4a56e9c969.tar.bz2
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into kinetic-declarativeui
Diffstat (limited to 'examples')
-rw-r--r--examples/graphicsview/anchorlayout/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/graphicsview/anchorlayout/main.cpp b/examples/graphicsview/anchorlayout/main.cpp
index f898d1d..389bc9e 100644
--- a/examples/graphicsview/anchorlayout/main.cpp
+++ b/examples/graphicsview/anchorlayout/main.cpp
@@ -122,8 +122,8 @@ int main(int argc, char **argv)
scene.addItem(w);
scene.setBackgroundBrush(Qt::darkGreen);
- QGraphicsView *view = new QGraphicsView(&scene);
- view->show();
+ QGraphicsView view(&scene);
+ view.show();
return app.exec();
}