summaryrefslogtreecommitdiffstats
path: root/libkdegames/kgame/dialogs/kgameerrordialog.cpp
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 /libkdegames/kgame/dialogs/kgameerrordialog.cpp
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 'libkdegames/kgame/dialogs/kgameerrordialog.cpp')
-rw-r--r--libkdegames/kgame/dialogs/kgameerrordialog.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/libkdegames/kgame/dialogs/kgameerrordialog.cpp b/libkdegames/kgame/dialogs/kgameerrordialog.cpp
index d5df6ba3..6ab9d71c 100644
--- a/libkdegames/kgame/dialogs/kgameerrordialog.cpp
+++ b/libkdegames/kgame/dialogs/kgameerrordialog.cpp
@@ -37,7 +37,7 @@ public:
const KGame* mGame;
};
-KGameErrorDialog::KGameErrorDialog(TQWidget* tqparent) : TQObject(tqparent)
+KGameErrorDialog::KGameErrorDialog(TQWidget* parent) : TQObject(parent)
{
d = new KGameErrorDialogPrivate;
}
@@ -71,14 +71,14 @@ void KGameErrorDialog::slotUnsetKGame()
d->mGame = 0;
}
-void KGameErrorDialog::error(const TQString& errorText, TQWidget* tqparent)
-{ KMessageBox::error(tqparent, errorText); }
+void KGameErrorDialog::error(const TQString& errorText, TQWidget* parent)
+{ KMessageBox::error(parent, errorText); }
void KGameErrorDialog::slotServerConnectionLost()
{
// TODO: add IP/port of the server
TQString message = i18n("Connection to the server has been lost!");
- error(message, (TQWidget*)tqparent());
+ error(message, (TQWidget*)parent());
}
void KGameErrorDialog::slotClientConnectionLost(TQ_UINT32 /*id*/,bool)
@@ -91,13 +91,13 @@ void KGameErrorDialog::slotClientConnectionLost(TQ_UINT32 /*id*/,bool)
// message = i18n("Connection to client has been lost!");
// }
message = i18n("Connection to client has been lost!");
- error(message, (TQWidget*)tqparent());
+ error(message, (TQWidget*)parent());
}
void KGameErrorDialog::slotError(int errorNo, TQString text)
{
TQString message = i18n("Received a network error!\nError number: %1\nError message: %2").tqarg(errorNo).tqarg(text);
- error(message, (TQWidget*)tqparent());
+ error(message, (TQWidget*)parent());
}
void KGameErrorDialog::connectionError(TQString s)
@@ -108,15 +108,15 @@ void KGameErrorDialog::connectionError(TQString s)
} else {
message = i18n("No connection could be created.\nThe error message was:\n%1").tqarg(s);
}
- error(message, (TQWidget*)tqparent());
+ error(message, (TQWidget*)parent());
}
// should become the real dialog - currently we just use messageboxes
// -> maybe unused forever
-KGameErrorMessageDialog::KGameErrorMessageDialog(TQWidget* tqparent)
- : KDialogBase(Plain, i18n("Error"), Ok, Ok, tqparent, 0, true, true)
+KGameErrorMessageDialog::KGameErrorMessageDialog(TQWidget* parent)
+ : KDialogBase(Plain, i18n("Error"), Ok, Ok, parent, 0, true, true)
{
}