From 58ba349f19f98fe3af5332188f5d3dfe4d076807 Mon Sep 17 00:00:00 2001 From: manuel Date: Tue, 19 Apr 2011 23:03:50 +0200 Subject: nicer method of ending rounds --- pacman-c++/mainwidget.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pacman-c++/mainwidget.cpp') diff --git a/pacman-c++/mainwidget.cpp b/pacman-c++/mainwidget.cpp index f81961f..82099c4 100644 --- a/pacman-c++/mainwidget.cpp +++ b/pacman-c++/mainwidget.cpp @@ -80,8 +80,6 @@ void MainWidget::createGui() scoreLayout->addWidget(scoreBox); } layout->addLayout(scoreLayout); - /* add some margin to scorebox hopefully won't resize the window */ - //setMinimumWidth(scoreLayout->minimumSize().width() + 50); QGraphicsView *window = new QGraphicsView(m_scene, this); window->setFrameStyle(0); @@ -151,6 +149,7 @@ void MainWidget::tick() if (m_updatepacket.eating_order_size() > 0) { Q_ASSERT(m_scene != NULL); + m_scene->removeActors(); QList order; for(int i = 0; i < m_updatepacket.eating_order_size(); ++i) order.append(static_cast(m_updatepacket.eating_order(i) & Transmission::color_mask)); -- cgit v1.2.3