From de6884b116323b5baa620a4bcdf7b7eb44a833aa Mon Sep 17 00:00:00 2001 From: totycro Date: Tue, 5 Apr 2011 17:58:09 +0200 Subject: added menubar --- pacman-c++/mainwidget.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'pacman-c++/mainwidget.cpp') diff --git a/pacman-c++/mainwidget.cpp b/pacman-c++/mainwidget.cpp index 1179a81..9d7fb14 100644 --- a/pacman-c++/mainwidget.cpp +++ b/pacman-c++/mainwidget.cpp @@ -9,14 +9,10 @@ MainWidget::MainWidget() { QVBoxLayout *layout = new QVBoxLayout(this); - //QLabel *lbl = new QLabel("da kommt da spielstand hin"); - //layout->addWidget(lbl); - - //scoreBox->setLayout(scoreLayout); QHBoxLayout *m_scoreLayout = new QHBoxLayout(); for (unsigned int i=1; i<4; ++i) { - QGroupBox *scoreBoxI = new QGroupBox(QString("Player %1").arg(i), this); + QGroupBox *scoreBoxI = new QGroupBox(QString("Spieler %1").arg(i), this); m_scoreLayout->addWidget(scoreBoxI); QGridLayout *playerLayout = new QGridLayout(); @@ -25,13 +21,11 @@ MainWidget::MainWidget() playerLayout->addWidget( new QLabel("Rundenpunkte:", this), 0, 0); playerLayout->addWidget( new QLabel("Gesamtpunkte:", this), 1, 0); - playerLayout->addWidget( new QLabel("100", this), 0, 1); - playerLayout->addWidget( new QLabel("1000", this), 1, 1); + playerLayout->addWidget( new QLabel("", this), 0, 1); + playerLayout->addWidget( new QLabel("", this), 1, 1); m_playerScoreLayouts.append(playerLayout); } - - //layout->addWidget(scoreBox); m_scene = new QGraphicsScene(0, 0, 500, 500, this); m_scene->setBackgroundBrush(Qt::black); -- cgit v1.2.3