From b0d6e4fcf33d21b24d2e9bbf7c5abf2065f0a4b3 Mon Sep 17 00:00:00 2001 From: manuel Date: Sat, 9 Apr 2011 15:28:00 +0200 Subject: move sound toggle icon to mainwidget --- pacman-c++/mainwidget.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pacman-c++/mainwidget.h') diff --git a/pacman-c++/mainwidget.h b/pacman-c++/mainwidget.h index 27e901f..650a472 100644 --- a/pacman-c++/mainwidget.h +++ b/pacman-c++/mainwidget.h @@ -7,7 +7,6 @@ #include "pixmapitem.h" #include #include -#include class Actor; @@ -17,7 +16,7 @@ class MainWidget Q_OBJECT public: - MainWidget(QWidget *parent = 0); + MainWidget(QMainWindow *window = 0, QWidget *parent = 0); protected: // handling of current key @@ -28,6 +27,7 @@ protected: private: void createGui(); + void createMenu(); void updateScore(); bool isRunning(); @@ -35,8 +35,10 @@ private slots: void startGame(); void playerScoreClicked(); void tick(); + void toggleSound() const; private: + QMainWindow *m_mainwindow; // GUI elements needed in the progress of the game QList m_playerScoreLayouts; -- cgit v1.2.3