diff options
author | gregory guy <gregory-tde@laposte.net> | 2020-08-17 20:03:11 +0200 |
---|---|---|
committer | gregory guy <gregory-tde@laposte.net> | 2020-08-17 20:03:11 +0200 |
commit | 503fddb48f2229ecc6ed6930a99c4d740ff979e5 (patch) | |
tree | 81206d9572927fd636b43a00005808cec6c0ce3e /kpacman/kpacman.cpp | |
parent | e0031ac458d4f414ae583a709d48c4cb0f14b09e (diff) | |
download | tdepacman-503fddb48f2229ecc6ed6930a99c4d740ff979e5.tar.gz tdepacman-503fddb48f2229ecc6ed6930a99c4d740ff979e5.zip |
Second step, convert to tqt3 libraries.
Signed-off-by: gregory guy <gregory-tde@laposte.net>
Diffstat (limited to 'kpacman/kpacman.cpp')
-rw-r--r-- | kpacman/kpacman.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kpacman/kpacman.cpp b/kpacman/kpacman.cpp index 5479861..7ee12c3 100644 --- a/kpacman/kpacman.cpp +++ b/kpacman/kpacman.cpp @@ -15,11 +15,11 @@ * * ***************************************************************************/ -// include files for Qt -#include <qkeycode.h> -#include <qcolor.h> -#include <qstring.h> -#include <qmsgbox.h> +// include files for TQt +#include <ntqkeycode.h> +#include <ntqcolor.h> +#include <ntqstring.h> +#include <ntqmsgbox.h> // include files for KDE #include <kcolordlg.h> @@ -32,7 +32,7 @@ #define ID_STATUS_MSG 1 -KpacmanApp::KpacmanApp(QWidget *, const char *name) : KMainWindow(0, name) +KpacmanApp::KpacmanApp(TQWidget *, const char *name) : KMainWindow(0, name) { config=kapp->config(); @@ -171,7 +171,7 @@ void KpacmanApp::readOptions() toolBarPos = (KToolBar::BarPosition) config->readNumEntry("ToolBarPos", KToolBar::Top); toolBar("mainToolBar")->setBarPos(toolBarPos); - QSize size = config->readSizeEntry("Geometry"); + TQSize size = config->readSizeEntry("Geometry"); if (!size.isEmpty()) { resize(size); @@ -185,9 +185,9 @@ void KpacmanApp::readOptions() void KpacmanApp::readSchemes() { - QString saveGroup = config->group(); - QString group; - QString description; + TQString saveGroup = config->group(); + TQString group; + TQString description; int modeCount = config->readNumEntry("ModeCount", -1); int schemeCount = config->readNumEntry("SchemeCount"); @@ -196,20 +196,20 @@ void KpacmanApp::readSchemes() schemeID.resize(schemeCount); schemeMode.resize(schemeCount); - schemesPopup = new QList<KPopupMenu>; + schemesPopup = new TQList<KPopupMenu>; schemesPopup->setAutoDelete(true); modesPopup = selectGraphicScheme->popupMenu(); connect(modesPopup, SIGNAL(activated(int)), this, SLOT(slotSchemeActivated(int))); if (schemeCount == 0 || scheme == -1) { - QMessageBox::warning(this, i18n("Configuration Error"), + TQMessageBox::warning(this, i18n("Configuration Error"), i18n("There are no schemes defined,\n" "or no scheme is selected.")); return; } - // create submenus (QPopupMenu) for graphic-modes + // create submenus (TQPopupMenu) for graphic-modes for (int m = 0; m < modeCount; m++) { group.sprintf("Mode %d", m); config->setGroup(group); @@ -446,7 +446,7 @@ void KpacmanApp::slotKeyBindings() /////////////////////////////////////////////////////////////////// // configure key bindings Keys *keys = new Keys(); - if (keys->exec() == QDialog::Accepted) { + if (keys->exec() == TQDialog::Accepted) { view->referee->initKeys(); view->score->initKeys(); } @@ -465,7 +465,7 @@ void KpacmanApp::slotGameFinished() slotStatusMsg(i18n("Ready.")); } -void KpacmanApp::slotStatusMsg(const QString &text) +void KpacmanApp::slotStatusMsg(const TQString &text) { /////////////////////////////////////////////////////////////////// // change status message permanently |