diff options
| author | totycro <totycro@unknown-horizons.org> | 2011-04-05 17:58:09 +0200 |
|---|---|---|
| committer | totycro <totycro@unknown-horizons.org> | 2011-04-05 17:58:09 +0200 |
| commit | de6884b116323b5baa620a4bcdf7b7eb44a833aa (patch) | |
| tree | d6258733235b1dd4f1418e4ec45fca9d4af06770 /pacman-c++/client.cpp | |
| parent | 050e11002cb05586cf0f013b234c6801a9d876c4 (diff) | |
| download | foop-de6884b116323b5baa620a4bcdf7b7eb44a833aa.tar.gz foop-de6884b116323b5baa620a4bcdf7b7eb44a833aa.tar.bz2 foop-de6884b116323b5baa620a4bcdf7b7eb44a833aa.zip | |
added menubar
Diffstat (limited to 'pacman-c++/client.cpp')
| -rw-r--r-- | pacman-c++/client.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pacman-c++/client.cpp b/pacman-c++/client.cpp index 736de35..a5cb7c5 100644 --- a/pacman-c++/client.cpp +++ b/pacman-c++/client.cpp | |||
| @@ -2,6 +2,12 @@ | |||
| 2 | 2 | ||
| 3 | Client::Client() | 3 | Client::Client() |
| 4 | { | 4 | { |
| 5 | QAction *quitAction = new QAction("E&xit", this); | ||
| 6 | connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit())); | ||
| 7 | |||
| 8 | QMenu *fileMenu = menuBar()->addMenu("File"); | ||
| 9 | fileMenu->addAction(quitAction); | ||
| 10 | |||
| 5 | mainWidget = new MainWidget(); | 11 | mainWidget = new MainWidget(); |
| 6 | setCentralWidget(mainWidget); | 12 | setCentralWidget(mainWidget); |
| 7 | } | 13 | } |
