From 503fddb48f2229ecc6ed6930a99c4d740ff979e5 Mon Sep 17 00:00:00 2001 From: gregory guy Date: Mon, 17 Aug 2020 20:03:11 +0200 Subject: Second step, convert to tqt3 libraries. Signed-off-by: gregory guy --- kpacman/kpacman.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'kpacman/kpacman.cpp') 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 -#include -#include -#include +// include files for TQt +#include +#include +#include +#include // include files for KDE #include @@ -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; + schemesPopup = new TQList; 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 -- cgit v1.2.1