summaryrefslogtreecommitdiffstats
path: root/libksirtet/lib/keys.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
commit838baf3f99ec5ab81b063eb5449a3381d860f377 (patch)
treedd31abcfde08ca92e4623b8f50b3d762a87c997a /libksirtet/lib/keys.cpp
parent2bf598bafa22fac4126fc8842df6b0119aadc0e9 (diff)
downloadtdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.tar.gz
tdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.zip
TQt4 port kdegames
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1236074 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libksirtet/lib/keys.cpp')
-rw-r--r--libksirtet/lib/keys.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/libksirtet/lib/keys.cpp b/libksirtet/lib/keys.cpp
index 8433503f..fadb8e5f 100644
--- a/libksirtet/lib/keys.cpp
+++ b/libksirtet/lib/keys.cpp
@@ -7,8 +7,8 @@
KeyData::KeyData(uint maxNb, uint nbActions, const ActionData *data,
- TQObject *parent)
- : TQObject(parent), _maxNb(maxNb)
+ TQObject *tqparent)
+ : TQObject(tqparent), _maxNb(maxNb)
{
_data.duplicate(data, nbActions);
@@ -46,10 +46,10 @@ void KeyData::createActionCollection(uint index, TQWidget *receiver)
_cols[index] = new KActionCollection(receiver, this);
for (uint k=0; k<_data.size(); k++) {
TQString label = i18n(_data[k].label);
- TQString name = TQString("%2 %3").arg(index+1).arg(_data[k].name);
+ TQString name = TQString("%2 %3").tqarg(index+1).tqarg(_data[k].name);
const char *slot = (_data[k].slotRelease ? 0 : _data[k].slot);
KAction *a = new KAction(label, _keycodes[_cols.size()-1][index][k],
- receiver, slot, _cols[index], name.utf8());
+ TQT_TQOBJECT(receiver), slot, _cols[index], name.utf8());
a->setEnabled(false);
if ( slot==0 ) {
SpecialData data;
@@ -68,7 +68,7 @@ void KeyData::setEnabled(uint index, bool enabled)
{
for (uint k=0; k<_cols[index]->count(); k++) {
TQMap<KAction *, SpecialData>::Iterator it =
- _specActions.find(_cols[index]->action(k));
+ _specActions.tqfind(_cols[index]->action(k));
if ( it==_specActions.end() )
_cols[index]->action(k)->setEnabled(enabled);
else (*it).enabled = enabled;
@@ -78,8 +78,8 @@ void KeyData::setEnabled(uint index, bool enabled)
void KeyData::addKeys(KKeyDialog &d)
{
for (uint i=0; i<_cols.size(); i++)
- d.insert(_cols[i], i18n("Shortcuts for player #%1/%2").arg(i+1)
- .arg(_cols.size()));
+ d.insert(_cols[i], i18n("Shortcuts for player #%1/%2").tqarg(i+1)
+ .tqarg(_cols.size()));
}
void KeyData::save()