From 36fab41fa6b38b9f3aa5ecd74b750eaf739beb16 Mon Sep 17 00:00:00 2001 From: zecke Date: Wed, 22 Jan 2003 14:52:17 +0000 Subject: make it build with Qt/X11 for running one need to copy the kpacman.conf from share/kpacman to ~/Settings --- (limited to 'noncore/games') diff --git a/noncore/games/kpacman/kpacman.cpp b/noncore/games/kpacman/kpacman.cpp index d9d2d69..aee8eea 100644 --- a/noncore/games/kpacman/kpacman.cpp +++ b/noncore/games/kpacman/kpacman.cpp @@ -115,7 +115,7 @@ void Kpacman::menu() optionsPopup->insertItem(tr("Change &keys..."), this, SLOT(confKeys())); -#ifndef QWS +#ifndef QPE_PORT QString aboutText = tr("@PACKAGE@ - @VERSION@\n\n" "Joerg Thoennissen (joe@dsite.de)\n\n" "A pacman game for the KDE Desktop\n\n" @@ -135,7 +135,7 @@ void Kpacman::menu() //_menuBar->insertItem(tr("&Game"), gamePopup); //_menuBar->insertItem(tr("&Options"), optionsPopup); //_menuBar->insertSeparator(); -#ifndef QWS +#ifndef QPE_PORT _menuBar->insertItem(tr("&Help"), helpPopup); #endif } diff --git a/noncore/games/kpacman/kpacmanwidget.cpp b/noncore/games/kpacman/kpacmanwidget.cpp index feb782c..cf2aed9 100644 --- a/noncore/games/kpacman/kpacmanwidget.cpp +++ b/noncore/games/kpacman/kpacmanwidget.cpp @@ -23,6 +23,9 @@ KpacmanWidget::KpacmanWidget( QWidget *parent, const char *name) : QWidget( parent, name ) { + score = 0l; + referee = 0l; + status = 0l; bitfont = NULL; fontName = ""; @@ -141,9 +144,11 @@ void KpacmanWidget::setScheme(int Scheme, int Mode) void KpacmanWidget::resizeEvent( QResizeEvent * ) { + qWarning("Resize"); referee->setGeometry(0, bitfont->height()*3, referee->width(), referee->height()); referee->setBackgroundColor(BLACK); + if(!status ) return; status->setGeometry(0, bitfont->height()*3+referee->height(), referee->width(), status->height()); status->setBackgroundColor(BLACK); diff --git a/noncore/games/kpacman/portable.h b/noncore/games/kpacman/portable.h index ff0912b..b087be5 100644 --- a/noncore/games/kpacman/portable.h +++ b/noncore/games/kpacman/portable.h @@ -19,12 +19,7 @@ #ifndef PORTABLE_H #define PORTABLE_H -#ifdef QWS #define QPE_PORT -#else -#define KDE2_PORT -#define KDE_PORT -#endif #if defined( KDE2_PORT ) diff --git a/noncore/games/kpacman/status.cpp b/noncore/games/kpacman/status.cpp index 3453d37..1ef910d 100644 --- a/noncore/games/kpacman/status.cpp +++ b/noncore/games/kpacman/status.cpp @@ -22,6 +22,7 @@ Status::Status( QWidget *parent, const char *name, int Scheme, int Mode ) : QWidget( parent, name ) { + qWarning("Status::Status"); actualLifes = 0; actualLevel = 0; -- cgit v0.9.0.2