summaryrefslogtreecommitdiffstats
path: root/kbackgammon/engines/nextgen/kbgng.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbackgammon/engines/nextgen/kbgng.cpp')
-rw-r--r--kbackgammon/engines/nextgen/kbgng.cpp14
1 files changed, 7 insertions, 7 deletions
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);
}