summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-12-09 09:52:14 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-12-09 09:52:20 (GMT)
commiteea71824f57dd61b0a513e3bbb5ced99de505d73 (patch)
tree557ea6ed134681ab948130c860d151816b415a8e /examples
parentc44f142cedf847bfb676eb70cb52f61a6c6ba232 (diff)
parent5146c3cb984fe6bfc661811559515b9e84d14628 (diff)
downloadQt-eea71824f57dd61b0a513e3bbb5ced99de505d73.zip
Qt-eea71824f57dd61b0a513e3bbb5ced99de505d73.tar.gz
Qt-eea71824f57dd61b0a513e3bbb5ced99de505d73.tar.bz2
Merge oslo-staging-2/4.6 into upstream/4.6
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();
}