summaryrefslogtreecommitdiff
path: root/noncore/games/kpacman/kpacman.cpp
authorimm <imm>2002-09-21 12:24:59 (UTC)
committer imm <imm>2002-09-21 12:24:59 (UTC)
commit99d546ce72f40e28b04f09201d92d58294401591 (patch) (unidiff)
tree4589ba17c622a114efb4811334e0adce02cedeca /noncore/games/kpacman/kpacman.cpp
parent279f025b03efdade9c211dd9441eec0c2a91ad94 (diff)
downloadopie-99d546ce72f40e28b04f09201d92d58294401591.zip
opie-99d546ce72f40e28b04f09201d92d58294401591.tar.gz
opie-99d546ce72f40e28b04f09201d92d58294401591.tar.bz2
center widget
Diffstat (limited to 'noncore/games/kpacman/kpacman.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/games/kpacman/kpacman.cpp21
1 files changed, 8 insertions, 13 deletions
diff --git a/noncore/games/kpacman/kpacman.cpp b/noncore/games/kpacman/kpacman.cpp
index 7df6ef0..d9d2d69 100644
--- a/noncore/games/kpacman/kpacman.cpp
+++ b/noncore/games/kpacman/kpacman.cpp
@@ -26,13 +26,15 @@ Kpacman::Kpacman(QWidget *parent, const char *name)
26 26
27 menu(); 27 menu();
28 28
29 m_view = new QWidget( this, "m_view" );
30 m_view->setBackgroundColor( black );
31 m_layout = new QGridLayout( m_view );
32 m_layout->setMargin( 7 );
33
29 view = new KpacmanWidget( this, QString(name)+"widget"); 34 view = new KpacmanWidget( this, QString(name)+"widget");
35 m_layout->addWidget( view, 0, 0 );
30 36
31#ifndef QWS 37 setCaption( "KPacman" );
32 setFixedSize(view->width(), view->height());
33#else
34 setCaption( "Kpacman" );
35#endif
36 38
37 view->referee->setFocus(); 39 view->referee->setFocus();
38 40
@@ -63,14 +65,7 @@ Kpacman::Kpacman(QWidget *parent, const char *name)
63 toggleFocusInContinue(); 65 toggleFocusInContinue();
64 toggleHideMouseCursor(); 66 toggleHideMouseCursor();
65 67
66#ifndef QWS 68 setCentralWidget( m_view );
67 menuBar->show();
68 view->show();
69 setMenu(menuBar);
70 setView(view);
71#else
72 setCentralWidget( view );
73#endif
74} 69}
75 70
76Kpacman::~Kpacman() 71Kpacman::~Kpacman()