summaryrefslogtreecommitdiffstats
path: root/kbackgammon
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commita13e26c2f1eb3c5be81acf4f571dd4bafac10199 (patch)
tree1f1d3e407ae668b1448847970b2f1b626083faf6 /kbackgammon
parent24c5cdc2737fe0044b11a12359606973eb93fc0b (diff)
downloadtdegames-a13e26c2f1eb3c5be81acf4f571dd4bafac10199.tar.gz
tdegames-a13e26c2f1eb3c5be81acf4f571dd4bafac10199.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbackgammon')
-rw-r--r--kbackgammon/engines/fibs/kbgfibs.cpp20
-rw-r--r--kbackgammon/engines/fibs/kbgfibs.h2
-rw-r--r--kbackgammon/engines/fibs/kbgfibschat.cpp8
-rw-r--r--kbackgammon/engines/fibs/kbgfibschat.h2
-rw-r--r--kbackgammon/engines/fibs/kplayerlist.cpp6
-rw-r--r--kbackgammon/engines/fibs/kplayerlist.h2
-rw-r--r--kbackgammon/engines/generic/kbgengine.cpp4
-rw-r--r--kbackgammon/engines/generic/kbgengine.h2
-rw-r--r--kbackgammon/engines/gnubg/kbggnubg.cpp8
-rw-r--r--kbackgammon/engines/gnubg/kbggnubg.h2
-rw-r--r--kbackgammon/engines/nextgen/kbggame.cpp4
-rw-r--r--kbackgammon/engines/nextgen/kbggame.h2
-rw-r--r--kbackgammon/engines/nextgen/kbgng.cpp14
-rw-r--r--kbackgammon/engines/nextgen/kbgng.h4
-rw-r--r--kbackgammon/engines/offline/kbgoffline.cpp12
-rw-r--r--kbackgammon/engines/offline/kbgoffline.h2
-rw-r--r--kbackgammon/kbgboard.cpp38
-rw-r--r--kbackgammon/kbgboard.h14
-rw-r--r--kbackgammon/kbgtextview.cpp4
-rw-r--r--kbackgammon/kbgtextview.h2
20 files changed, 76 insertions, 76 deletions
diff --git a/kbackgammon/engines/fibs/kbgfibs.cpp b/kbackgammon/engines/fibs/kbgfibs.cpp
index c99b19f0..57eb6666 100644
--- a/kbackgammon/engines/fibs/kbgfibs.cpp
+++ b/kbackgammon/engines/fibs/kbgfibs.cpp
@@ -642,7 +642,7 @@ bool KBgEngineFIBS::queryClose()
if (connection->state() == TQSocket::Idle)
return true;
- switch (KMessageBox::warningYesNoCancel((TQWidget *)tqparent(),i18n("Still connected. Log out first?"),TQString(),i18n("Log Out"), i18n("Stay Connected"))) {
+ switch (KMessageBox::warningYesNoCancel((TQWidget *)parent(),i18n("Still connected. Log out first?"),TQString(),i18n("Log Out"), i18n("Stay Connected"))) {
case KMessageBox::Yes :
disconnectFIBS();
return true;
@@ -731,7 +731,7 @@ void KBgEngineFIBS::away()
bool ret;
TQString msg = KLineEditDlg::getText(i18n("Please type the message that should be displayed to other\n"
"users while you are away."),
- lastAway, &ret, (TQWidget *)tqparent());
+ lastAway, &ret, (TQWidget *)parent());
if (ret) {
lastAway = msg;
emit serverString("away " + msg);
@@ -1052,7 +1052,7 @@ bool KBgEngineFIBS::queryConnection(const bool newlogin)
msg = KLineEditDlg::getText(i18n("Enter the name of the server you want to connect to.\n"
"This should almost always be \"fibs.com\"."),
- infoFIBS[FIBSHost], &ret, (TQWidget *)tqparent());
+ infoFIBS[FIBSHost], &ret, (TQWidget *)parent());
if (ret)
infoFIBS[FIBSHost] = msg;
@@ -1064,7 +1064,7 @@ bool KBgEngineFIBS::queryConnection(const bool newlogin)
msg = KLineEditDlg::getText(i18n("Enter the port number on the server. "
"It should almost always be \"4321\"."),
- infoFIBS[FIBSPort], &ret, (TQWidget *)tqparent());
+ infoFIBS[FIBSPort], &ret, (TQWidget *)parent());
if (ret)
infoFIBS[FIBSPort] = msg;
@@ -1088,7 +1088,7 @@ bool KBgEngineFIBS::queryConnection(const bool newlogin)
first = true;
do {
msg = (KLineEditDlg::getText(text, infoFIBS[FIBSUser], &ret,
- (TQWidget *)tqparent())).stripWhiteSpace();
+ (TQWidget *)parent())).stripWhiteSpace();
if (first) {
text += i18n("The login may not contain spaces or colons!");
first = false;
@@ -1400,7 +1400,7 @@ void KBgEngineFIBS::handleMessageConnect(const TQString &line, const TQString &r
if (rxCollect.isEmpty()) {
rxtqStatus = RxIgnore;
int ret = KMessageBox::warningContinueCancel
- ((TQWidget *)tqparent(), i18n("There was a problem with "
+ ((TQWidget *)parent(), i18n("There was a problem with "
"your login and password. "
"You can reenter\n"
"your login and password and "
@@ -1574,7 +1574,7 @@ void KBgEngineFIBS::handleMessageNewLogin(const TQString &line)
do {
msg = (KLineEditDlg::getText(text, infoFIBS[FIBSUser], &ret,
- (TQWidget *)tqparent())).stripWhiteSpace();
+ (TQWidget *)parent())).stripWhiteSpace();
if (first) {
text += i18n("\n\nThe login may not contain spaces or colons!");
first = false;
@@ -2091,13 +2091,13 @@ void KBgEngineFIBS::handleMessageNormal(TQString &line, TQString &rawline)
/*
* Constructor
*/
-KBgEngineFIBS::KBgEngineFIBS(TQWidget *tqparent, TQString *name, TQPopupMenu *pmenu)
- : KBgEngine(tqparent, name, pmenu)
+KBgEngineFIBS::KBgEngineFIBS(TQWidget *parent, TQString *name, TQPopupMenu *pmenu)
+ : KBgEngine(parent, name, pmenu)
{
/*
* No connection, not playing, ready for login
*/
- connection = new TQSocket(TQT_TQOBJECT(tqparent), "fibs connection");
+ connection = new TQSocket(TQT_TQOBJECT(parent), "fibs connection");
playing = false;
login = true;
diff --git a/kbackgammon/engines/fibs/kbgfibs.h b/kbackgammon/engines/fibs/kbgfibs.h
index d044c642..24555ef2 100644
--- a/kbackgammon/engines/fibs/kbgfibs.h
+++ b/kbackgammon/engines/fibs/kbgfibs.h
@@ -67,7 +67,7 @@ public:
/**
* Constructor
*/
- KBgEngineFIBS(TQWidget *tqparent = 0, TQString *name = 0, TQPopupMenu *pmenu = 0);
+ KBgEngineFIBS(TQWidget *parent = 0, TQString *name = 0, TQPopupMenu *pmenu = 0);
/**
* Destructor
diff --git a/kbackgammon/engines/fibs/kbgfibschat.cpp b/kbackgammon/engines/fibs/kbgfibschat.cpp
index f4dce656..c3490cec 100644
--- a/kbackgammon/engines/fibs/kbgfibschat.cpp
+++ b/kbackgammon/engines/fibs/kbgfibschat.cpp
@@ -71,10 +71,10 @@ public:
/*
* Constructor
*/
- KLBT(TQWidget *tqparent, const TQString &text = TQString(), const TQString &player = TQString())
+ KLBT(TQWidget *parent, const TQString &text = TQString(), const TQString &player = TQString())
: TQListBoxText(text)
{
- w = tqparent;
+ w = parent;
n = new TQString(player);
t = new TQSimpleRichText(text, w->font());
@@ -189,8 +189,8 @@ public:
/*
* Constructor of the chat window.
*/
-KBgChat::KBgChat(TQWidget *tqparent, const char *name)
- : KChat(tqparent, false)
+KBgChat::KBgChat(TQWidget *parent, const char *name)
+ : KChat(parent, false)
{
d = new KBgChatPrivate();
KActionCollection* actions = new KActionCollection(this);
diff --git a/kbackgammon/engines/fibs/kbgfibschat.h b/kbackgammon/engines/fibs/kbgfibschat.h
index a34a0c93..edfafc98 100644
--- a/kbackgammon/engines/fibs/kbgfibschat.h
+++ b/kbackgammon/engines/fibs/kbgfibschat.h
@@ -62,7 +62,7 @@ public:
/**
* Constructor
*/
- KBgChat(TQWidget *tqparent = 0, const char *name = 0);
+ KBgChat(TQWidget *parent = 0, const char *name = 0);
/**
* Destructor
diff --git a/kbackgammon/engines/fibs/kplayerlist.cpp b/kbackgammon/engines/fibs/kplayerlist.cpp
index 72714f4c..e79e1118 100644
--- a/kbackgammon/engines/fibs/kplayerlist.cpp
+++ b/kbackgammon/engines/fibs/kplayerlist.cpp
@@ -79,7 +79,7 @@ public:
/*
* Constructor
*/
- KFibsPlayerListLVI(KFibsPlayerList *tqparent) : KListViewItem(tqparent) { _plist = tqparent; }
+ KFibsPlayerListLVI(KFibsPlayerList *parent) : KListViewItem(parent) { _plist = parent; }
/*
* Destructor
@@ -200,8 +200,8 @@ public:
/*
* Construct the playerlist and do some initial setup
*/
-KFibsPlayerList::KFibsPlayerList(TQWidget *tqparent, const char *name)
- : KListView(tqparent, name)
+KFibsPlayerList::KFibsPlayerList(TQWidget *parent, const char *name)
+ : KListView(parent, name)
{
d = new KFibsPlayerListPrivate();
KActionCollection* actions = new KActionCollection(this);
diff --git a/kbackgammon/engines/fibs/kplayerlist.h b/kbackgammon/engines/fibs/kplayerlist.h
index 7fe45218..793e1b39 100644
--- a/kbackgammon/engines/fibs/kplayerlist.h
+++ b/kbackgammon/engines/fibs/kplayerlist.h
@@ -64,7 +64,7 @@ public:
/**
* Constructor
*/
- KFibsPlayerList(TQWidget *tqparent = 0, const char *name = 0);
+ KFibsPlayerList(TQWidget *parent = 0, const char *name = 0);
/**
* Destructor
diff --git a/kbackgammon/engines/generic/kbgengine.cpp b/kbackgammon/engines/generic/kbgengine.cpp
index ac217bd0..a066a8c3 100644
--- a/kbackgammon/engines/generic/kbgengine.cpp
+++ b/kbackgammon/engines/generic/kbgengine.cpp
@@ -33,8 +33,8 @@
/*
* Constructor initializes the TQObject
*/
-KBgEngine::KBgEngine(TQWidget *tqparent, TQString *name, TQPopupMenu *pmenu)
- : TQObject(tqparent, name->local8Bit())
+KBgEngine::KBgEngine(TQWidget *parent, TQString *name, TQPopupMenu *pmenu)
+ : TQObject(parent, name->local8Bit())
{
menu = pmenu;
cl = -1;
diff --git a/kbackgammon/engines/generic/kbgengine.h b/kbackgammon/engines/generic/kbgengine.h
index c43b31b5..48855265 100644
--- a/kbackgammon/engines/generic/kbgengine.h
+++ b/kbackgammon/engines/generic/kbgengine.h
@@ -69,7 +69,7 @@ public:
/**
* Constructor
*/
- KBgEngine (TQWidget * tqparent = 0, TQString * name = 0, TQPopupMenu * pmenu = 0);
+ KBgEngine (TQWidget * parent = 0, TQString * name = 0, TQPopupMenu * pmenu = 0);
/**
* Destructor
diff --git a/kbackgammon/engines/gnubg/kbggnubg.cpp b/kbackgammon/engines/gnubg/kbggnubg.cpp
index 1ddc3664..3ad42dd7 100644
--- a/kbackgammon/engines/gnubg/kbggnubg.cpp
+++ b/kbackgammon/engines/gnubg/kbggnubg.cpp
@@ -275,7 +275,7 @@ void KBgEngineGNU::newGame()
/*
* If there is a game running we warn the user first
*/
- if (gameRunning && (KMessageBox::warningYesNo((TQWidget *)tqparent(),
+ if (gameRunning && (KMessageBox::warningYesNo((TQWidget *)parent(),
i18n("A game is currently in progress. "
"Starting a new one will terminate it."),
TQString(), i18n("Start New Game"), i18n("Continue Old Game"))
@@ -422,8 +422,8 @@ void KBgEngineGNU::saveConfig()
/*
* Constructor
*/
-KBgEngineGNU::KBgEngineGNU(TQWidget *tqparent, TQString *name, TQPopupMenu *pmenu)
- : KBgEngine(tqparent, name, pmenu)
+KBgEngineGNU::KBgEngineGNU(TQWidget *parent, TQString *name, TQPopupMenu *pmenu)
+ : KBgEngine(parent, name, pmenu)
{
// obsolete
nameUS = "US";
@@ -503,7 +503,7 @@ void KBgEngineGNU::startGNU()
resAction->setEnabled(false);
if (!gnubg.start(KProcess::NotifyOnExit, KProcess::All))
- KMessageBox::information((TQWidget *)tqparent(),
+ KMessageBox::information((TQWidget *)parent(),
i18n("Could not start the GNU Backgammon process.\n"
"Make sure the program is in your PATH and is "
"called \"gnubg\".\n"
diff --git a/kbackgammon/engines/gnubg/kbggnubg.h b/kbackgammon/engines/gnubg/kbggnubg.h
index 78b4566e..59c133ef 100644
--- a/kbackgammon/engines/gnubg/kbggnubg.h
+++ b/kbackgammon/engines/gnubg/kbggnubg.h
@@ -51,7 +51,7 @@ public:
/*
* Constructor and destructor
*/
- KBgEngineGNU(TQWidget *tqparent = 0, TQString *name = 0, TQPopupMenu *pmenu = 0);
+ KBgEngineGNU(TQWidget *parent = 0, TQString *name = 0, TQPopupMenu *pmenu = 0);
virtual ~KBgEngineGNU();
/**
diff --git a/kbackgammon/engines/nextgen/kbggame.cpp b/kbackgammon/engines/nextgen/kbggame.cpp
index d00c1966..0aed48c2 100644
--- a/kbackgammon/engines/nextgen/kbggame.cpp
+++ b/kbackgammon/engines/nextgen/kbggame.cpp
@@ -31,8 +31,8 @@
/*
* Constructor
*/
-KBgGame::KBgGame(int cookie, TQObject *tqparent)
- : KGame(cookie, tqparent)
+KBgGame::KBgGame(int cookie, TQObject *parent)
+ : KGame(cookie, parent)
{
// do nothing...
}
diff --git a/kbackgammon/engines/nextgen/kbggame.h b/kbackgammon/engines/nextgen/kbggame.h
index 255a3483..4dd6abd3 100644
--- a/kbackgammon/engines/nextgen/kbggame.h
+++ b/kbackgammon/engines/nextgen/kbggame.h
@@ -46,7 +46,7 @@ public:
enum MsgID {Text, Cmd, MaxMsg};
- KBgGame(int cookie = 42, TQObject *tqparent = 0);
+ KBgGame(int cookie = 42, TQObject *parent = 0);
protected:
diff --git a/kbackgammon/engines/nextgen/kbgng.cpp b/kbackgammon/engines/nextgen/kbgng.cpp
index f2f04066..e0c1aed5 100644
--- a/kbackgammon/engines/nextgen/kbgng.cpp
+++ b/kbackgammon/engines/nextgen/kbgng.cpp
@@ -51,8 +51,8 @@
/*
* Constructor
*/
-KBgEngineNg::KBgEngineNg(TQWidget *tqparent, TQString *name, TQPopupMenu *pmenu)
- : KBgEngine(tqparent, name, pmenu)
+KBgEngineNg::KBgEngineNg(TQWidget *parent, TQString *name, TQPopupMenu *pmenu)
+ : KBgEngine(parent, name, pmenu)
{
// get a new game
initGame();
@@ -140,7 +140,7 @@ void KBgEngineNg::setGame()
"65535.");
port_s.setNum(_port);
do {
- port_s = KLineEditDlg::getText(label, port_s, &ret, (TQWidget *)tqparent());
+ port_s = KLineEditDlg::getText(label, port_s, &ret, (TQWidget *)parent());
if (!ret)
return;
port = port_s.toUShort(&ret);
@@ -159,7 +159,7 @@ void KBgEngineNg::setGame()
label = i18n("Type the name of the server you want to connect to:");
host_s = _host;
do {
- host_s = KLineEditDlg::getText(label, host_s, &ret, (TQWidget *)tqparent());
+ host_s = KLineEditDlg::getText(label, host_s, &ret, (TQWidget *)parent());
if (!ret)
return;
} while (host_s.isEmpty());
@@ -168,7 +168,7 @@ void KBgEngineNg::setGame()
"number should be between 1024 and 65535.").tqarg(host_s);
port_s.setNum(_port);
do {
- port_s = KLineEditDlg::getText(label, port_s, &ret, (TQWidget *)tqparent());
+ port_s = KLineEditDlg::getText(label, port_s, &ret, (TQWidget *)parent());
if (!ret)
return;
port = port_s.toUShort(&ret);
@@ -546,10 +546,10 @@ void KBgEngineNg::changeName()
while (!_player[i]->isVirtual() && name.isEmpty()) {
if (i == 0)
name = KLineEditDlg::getText(i18n("Type the name of the first player:"),
- _name[i], &ok, (TQWidget *)tqparent());
+ _name[i], &ok, (TQWidget *)parent());
else
name = KLineEditDlg::getText(i18n("Type the name of the second player:"),
- _name[i], &ok, (TQWidget *)tqparent());
+ _name[i], &ok, (TQWidget *)parent());
if (!ok) return;
_player[i]->setName(name);
}
diff --git a/kbackgammon/engines/nextgen/kbgng.h b/kbackgammon/engines/nextgen/kbgng.h
index 12c94140..670a7849 100644
--- a/kbackgammon/engines/nextgen/kbgng.h
+++ b/kbackgammon/engines/nextgen/kbgng.h
@@ -58,7 +58,7 @@ public:
/*
* Constructor and destructor
*/
- KBgEngineNg( TQWidget *tqparent = 0, TQString *name = 0, TQPopupMenu *pmenu = 0);
+ KBgEngineNg( TQWidget *parent = 0, TQString *name = 0, TQPopupMenu *pmenu = 0);
virtual ~KBgEngineNg();
/**
@@ -245,7 +245,7 @@ private:
/**
* Create the i-th player. Legal values for i are 0 and 1. The
- * name of the player is taken from @ref _name and the tqparent of
+ * name of the player is taken from @ref _name and the parent of
* the player is @ref _player. That means that the players are
* automatically deleted.
*/
diff --git a/kbackgammon/engines/offline/kbgoffline.cpp b/kbackgammon/engines/offline/kbgoffline.cpp
index 8dd93a7c..604d196e 100644
--- a/kbackgammon/engines/offline/kbgoffline.cpp
+++ b/kbackgammon/engines/offline/kbgoffline.cpp
@@ -106,8 +106,8 @@ public:
/*
* Constructor
*/
-KBgEngineOffline::KBgEngineOffline(TQWidget *tqparent, TQString *name, TQPopupMenu *pmenu)
- : KBgEngine(tqparent, name, pmenu)
+KBgEngineOffline::KBgEngineOffline(TQWidget *parent, TQString *name, TQPopupMenu *pmenu)
+ : KBgEngine(parent, name, pmenu)
{
d = new KBgEngineOfflinePrivate();
@@ -282,7 +282,7 @@ void KBgEngineOffline::newGame()
/*
* If there is a game running we warn the user first
*/
- if (d->mGameFlag && (KMessageBox::warningYesNo((TQWidget *)tqparent(),
+ if (d->mGameFlag && (KMessageBox::warningYesNo((TQWidget *)parent(),
i18n("A game is currently in progress. "
"Starting a new one will terminate it."),
TQString(), i18n("Start New Game"),
@@ -397,7 +397,7 @@ bool KBgEngineOffline::queryPlayerName(int w)
}
do {
- *name = KLineEditDlg::getText(text, *name, &ret, (TQWidget *)tqparent());
+ *name = KLineEditDlg::getText(text, *name, &ret, (TQWidget *)parent());
if (!ret) break;
} while (name->isEmpty());
@@ -645,7 +645,7 @@ void KBgEngineOffline::cube()
if (d->mRollFlag && d->mGame[0].cube(w) > 0) {
emit allowCommand(Cube, false);
- if (KMessageBox::questionYesNo((TQWidget *)tqparent(),
+ if (KMessageBox::questionYesNo((TQWidget *)parent(),
i18n("%1 has doubled. %2, do you accept the double?").
arg((w == THEM) ? d->mName[1] : d->mName[0]).
arg((w == US) ? d->mName[1] : d->mName[0]),
@@ -695,7 +695,7 @@ bool KBgEngineOffline::queryClose()
if (!d->mGameFlag)
return true;
- switch (KMessageBox::warningContinueCancel((TQWidget *)tqparent(),
+ switch (KMessageBox::warningContinueCancel((TQWidget *)parent(),
i18n("In the middle of a game. "
"Really quit?"), TQString(), KStdGuiItem::quit())) {
case KMessageBox::Continue :
diff --git a/kbackgammon/engines/offline/kbgoffline.h b/kbackgammon/engines/offline/kbgoffline.h
index a0217920..8c12f858 100644
--- a/kbackgammon/engines/offline/kbgoffline.h
+++ b/kbackgammon/engines/offline/kbgoffline.h
@@ -56,7 +56,7 @@ public:
/**
* Constructor
*/
- KBgEngineOffline(TQWidget *tqparent = 0, TQString *name = 0, TQPopupMenu *pmenu = 0);
+ KBgEngineOffline(TQWidget *parent = 0, TQString *name = 0, TQPopupMenu *pmenu = 0);
/**
* Destructor
diff --git a/kbackgammon/kbgboard.cpp b/kbackgammon/kbgboard.cpp
index a065ec40..ba2d1829 100644
--- a/kbackgammon/kbgboard.cpp
+++ b/kbackgammon/kbgboard.cpp
@@ -248,8 +248,8 @@ void KBgBoardSetup::getSetupPages(KDialogBase *nb)
/*
* Empty constructor calls the board constructor
*/
-KBgBoardSetup::KBgBoardSetup(TQWidget *tqparent, const char *name, TQPopupMenu *menu)
- : KBgBoard(tqparent, name, menu)
+KBgBoardSetup::KBgBoardSetup(TQWidget *parent, const char *name, TQPopupMenu *menu)
+ : KBgBoard(parent, name, menu)
{
// empty
}
@@ -1610,8 +1610,8 @@ KBgBoardField::~KBgBoardField()
* This is the constructor of the bars. It calls the base class' constructor
* and defines the TQWhatsThis string.
*/
-KBgBoardBar::KBgBoardBar(TQWidget * tqparent, int numID)
- : KBgBoardCell(tqparent, numID)
+KBgBoardBar::KBgBoardBar(TQWidget * parent, int numID)
+ : KBgBoardCell(parent, numID)
{
TQWhatsThis::add(this, i18n("This is the bar of the backgammon board.\n\n"
"Checkers that have been kicked from the board are put "
@@ -1627,8 +1627,8 @@ KBgBoardBar::KBgBoardBar(TQWidget * tqparent, int numID)
* This is the constructor of regular fields. It calls the base class' constructor
* and defines the TQWhatsThis string.
*/
-KBgBoardField::KBgBoardField(TQWidget * tqparent, int numID)
- : KBgBoardCell(tqparent, numID)
+KBgBoardField::KBgBoardField(TQWidget * parent, int numID)
+ : KBgBoardCell(parent, numID)
{
TQWhatsThis::add(this, i18n("This is a regular field of the backgammon board.\n\n"
"Checkers can be placed on this field and if the current state "
@@ -1641,8 +1641,8 @@ KBgBoardField::KBgBoardField(TQWidget * tqparent, int numID)
* This is the constructor of the homes. It calls the base class' constructor
* and defines the TQWhatsThis string.
*/
-KBgBoardHome::KBgBoardHome(TQWidget * tqparent, int numID)
- : KBgBoardCell(tqparent, numID)
+KBgBoardHome::KBgBoardHome(TQWidget * parent, int numID)
+ : KBgBoardCell(parent, numID)
{
TQWhatsThis::add(this, i18n("This part of the backgammon board is the home.\n\n"
"Depending on the direction of the game, one of the homes "
@@ -1734,10 +1734,10 @@ int KBgBoard::getTurn() const
* This is the constructor of the basic cells. It initializes the cell
* to a sane state and connects a signal to the board.
*/
-KBgBoardCell::KBgBoardCell(TQWidget * tqparent, int numID)
- : TQLabel(tqparent)
+KBgBoardCell::KBgBoardCell(TQWidget * parent, int numID)
+ : TQLabel(parent)
{
- board = (KBgBoard *)tqparent;
+ board = (KBgBoard *)parent;
direction = +1;
color = -1;
@@ -1749,7 +1749,7 @@ KBgBoardCell::KBgBoardCell(TQWidget * tqparent, int numID)
mouseButton = Qt::NoButton;
dragInProgress = false;
- connect(tqparent, TQT_SIGNAL(finishedUpdate()), this, TQT_SLOT(refresh()));
+ connect(parent, TQT_SIGNAL(finishedUpdate()), this, TQT_SLOT(refresh()));
}
/*
@@ -1854,7 +1854,7 @@ void KBgBoard::updateField(int f, int v)
}
/*
- * This function displays the context menu our tqparent may have given us
+ * This function displays the context menu our parent may have given us
*/
void KBgBoard::showContextMenu()
{
@@ -2162,10 +2162,10 @@ void KBgBoardCell::mouseMoveEvent(TQMouseEvent *)
board->drawSimpleChecker(&tmp, 0, 0, pcs, getCheckerDiameter());
tmp.end();
pix.setMask(pix.createHeuristicMask());
- TQBitmap tqmask = *(pix.tqmask());
+ TQBitmap mask = *(pix.mask());
TQBitmap newCursor;
newCursor = pix;
- board->replaceCursor(TQCursor(newCursor, tqmask));
+ board->replaceCursor(TQCursor(newCursor, mask));
if (board->getEditMode())
board->storeTurn(pcs);
getPiece();
@@ -2653,7 +2653,7 @@ void KBgBoard::redoMove()
}
/*
- * This function performs and undo for the last move and updates the tqparent
+ * This function performs and undo for the last move and updates the parent
* of the board by calling sendMove() after the undo.
*/
void KBgBoard::undoMove()
@@ -2823,8 +2823,8 @@ void KBgBoard::getRollDice(const int w)
* You have to change the status by passing a KBgtqStatus
* object to setState(...) before you can play!
*/
-KBgBoard::KBgBoard(TQWidget *tqparent, const char *name, TQPopupMenu *menu)
- : TQWidget(tqparent, name)
+KBgBoard::KBgBoard(TQWidget *parent, const char *name, TQPopupMenu *menu)
+ : TQWidget(parent, name)
{
/*
* The following lines set up internal bookkeeping data.
@@ -2838,7 +2838,7 @@ KBgBoard::KBgBoard(TQWidget *tqparent, const char *name, TQPopupMenu *menu)
checkerDiam = MINIMUM_CHECKER_SIZE;
/*
- * We may be initialized with a popup menu by our tqparent.
+ * We may be initialized with a popup menu by our parent.
*/
contextMenu = menu;
diff --git a/kbackgammon/kbgboard.h b/kbackgammon/kbgboard.h
index c73c6fac..f91ab93b 100644
--- a/kbackgammon/kbgboard.h
+++ b/kbackgammon/kbgboard.h
@@ -110,7 +110,7 @@ class KBgBoard : public TQWidget
/**
* Constructor and destructor. Parameter as usual.
*/
- KBgBoard(TQWidget *tqparent = 0, const char *name = 0,
+ KBgBoard(TQWidget *parent = 0, const char *name = 0,
TQPopupMenu *menu = 0);
virtual ~KBgBoard();
@@ -469,7 +469,7 @@ class KBgBoardCell : public TQLabel
/**
* Constructor and destructor
*/
- KBgBoardCell(TQWidget * tqparent, int numID);
+ KBgBoardCell(TQWidget * parent, int numID);
virtual ~KBgBoardCell();
/**
@@ -560,7 +560,7 @@ protected:
/**
* the board and the pieces are one unit (none makes
- * sense without the other). So the pieces know and access their tqparent.
+ * sense without the other). So the pieces know and access their parent.
*/
KBgBoard *board;
void checkAndMakeShortMove(TQMouseEvent *e, int m);
@@ -635,7 +635,7 @@ class KBgBoardHome : public KBgBoardCell
/**
* Constructor and destructor
*/
- KBgBoardHome( TQWidget * tqparent, int numID);
+ KBgBoardHome( TQWidget * parent, int numID);
virtual ~KBgBoardHome();
/**
@@ -698,7 +698,7 @@ class KBgBoardBar : public KBgBoardCell
/**
* Constructor
*/
- KBgBoardBar( TQWidget * tqparent, int numID );
+ KBgBoardBar( TQWidget * parent, int numID );
/**
* Destructor
@@ -734,7 +734,7 @@ class KBgBoardField : public KBgBoardCell
/**
* Constructor and destructor
*/
- KBgBoardField( TQWidget * tqparent, int numID);
+ KBgBoardField( TQWidget * parent, int numID);
virtual ~KBgBoardField();
/**
@@ -911,7 +911,7 @@ public:
/**
* Constructor
*/
- KBgBoardSetup(TQWidget *tqparent = 0, const char *name = 0,
+ KBgBoardSetup(TQWidget *parent = 0, const char *name = 0,
TQPopupMenu *menu = 0);
/**
diff --git a/kbackgammon/kbgtextview.cpp b/kbackgammon/kbgtextview.cpp
index 30b8b671..a2199b05 100644
--- a/kbackgammon/kbgtextview.cpp
+++ b/kbackgammon/kbgtextview.cpp
@@ -36,8 +36,8 @@
/*
* Constructor
*/
-KBgTextView::KBgTextView(TQWidget *tqparent, const char *name)
- : KTextBrowser(tqparent, name)
+KBgTextView::KBgTextView(TQWidget *parent, const char *name)
+ : KTextBrowser(parent, name)
{
clear();
setLinkUnderline(true);
diff --git a/kbackgammon/kbgtextview.h b/kbackgammon/kbgtextview.h
index 87d783a0..bb784129 100644
--- a/kbackgammon/kbgtextview.h
+++ b/kbackgammon/kbgtextview.h
@@ -43,7 +43,7 @@ public:
/**
* Constructor
*/
- KBgTextView(TQWidget *tqparent = 0, const char *name = 0);
+ KBgTextView(TQWidget *parent = 0, const char *name = 0);
/**
* Destructor