From 5480580d5c2fa40787a70dfdb68b52216917c58b Mon Sep 17 00:00:00 2001 From: manuel Date: Sun, 3 Apr 2011 17:32:48 +0200 Subject: fix intend --- pacman-c++/main.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'pacman-c++/main.cpp') diff --git a/pacman-c++/main.cpp b/pacman-c++/main.cpp index 0756684..cceb8f5 100644 --- a/pacman-c++/main.cpp +++ b/pacman-c++/main.cpp @@ -5,24 +5,24 @@ int main(int argc, char **argv) { - QApplication app(argc, argv); + QApplication app(argc, argv); - QGraphicsScene scene(0, 0, 300, 300); - scene.setBackgroundBrush(Qt::black); + QGraphicsScene scene(0, 0, 300, 300); + scene.setBackgroundBrush(Qt::black); - Actor *actor1 = new Actor(Actor::Player1); - scene.addItem(actor1); + Actor *actor1 = new Actor(Actor::Player1); + scene.addItem(actor1); - QGraphicsView window(&scene); - window.setFrameStyle(0); - window.setAlignment(Qt::AlignLeft | Qt::AlignTop); - window.setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); - window.setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); + QGraphicsView window(&scene); + window.setFrameStyle(0); + window.setAlignment(Qt::AlignLeft | Qt::AlignTop); + window.setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); + window.setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); - window.resize(300, 300); - window.show(); + window.resize(300, 300); + window.show(); - qsrand(QTime(0,0,0).secsTo(QTime::currentTime())); + qsrand(QTime(0,0,0).secsTo(QTime::currentTime())); - return app.exec(); + return app.exec(); } -- cgit v1.2.3