summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2008-06-23 12:23:59 +0200
committerSamuel Rødal <sroedal@trolltech.com>2008-06-23 12:23:59 +0200
commit4ee8805b00b0b8f630563d995883c8f04280c841 (patch)
treea07283422f14f1593e5b92a5b710f198ad1549b6
parent883d04cc23cc7e6e4ec4cf1febc6dcd02cd90041 (diff)
Simplify main a bit.
-rw-r--r--main.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/main.cpp b/main.cpp
index 9ac5558..18cff27 100644
--- a/main.cpp
+++ b/main.cpp
@@ -6,16 +6,11 @@ int main(int argc, char **argv)
{
QApplication app(argc, argv);
- QGraphicsView view;
+ QGraphicsView view(new GraphicsScene);
view.setViewport(new QGLWidget(QGLFormat(QGL::SampleBuffers)));
-
view.setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
view.setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
-
- view.setTransformationAnchor(QGraphicsView::NoAnchor);
view.setViewportUpdateMode(QGraphicsView::FullViewportUpdate);
-
- view.setScene(new GraphicsScene);
view.show();
return app.exec();