summaryrefslogtreecommitdiffstats
path: root/libksirtet/lib/keys.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
commit576eb4299a00bc053db35414406f46372a0f70f2 (patch)
tree4c030922d533821db464af566188e7d40cc8848c /libksirtet/lib/keys.cpp
parent0718336b6017d1a4fc1d626544180a5a2a29ddec (diff)
downloadtdegames-576eb4299a00bc053db35414406f46372a0f70f2.tar.gz
tdegames-576eb4299a00bc053db35414406f46372a0f70f2.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libksirtet/lib/keys.cpp')
-rw-r--r--libksirtet/lib/keys.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/libksirtet/lib/keys.cpp b/libksirtet/lib/keys.cpp
index 879f0bfa..8433503f 100644
--- a/libksirtet/lib/keys.cpp
+++ b/libksirtet/lib/keys.cpp
@@ -1,14 +1,14 @@
#include "keys.h"
#include "keys.moc"
-#include <qsignal.h>
+#include <tqsignal.h>
#include <kkeydialog.h>
#include <klocale.h>
KeyData::KeyData(uint maxNb, uint nbActions, const ActionData *data,
- QObject *parent)
- : QObject(parent), _maxNb(maxNb)
+ TQObject *parent)
+ : TQObject(parent), _maxNb(maxNb)
{
_data.duplicate(data, nbActions);
@@ -40,13 +40,13 @@ void KeyData::clear()
_cols.resize(0);
}
-void KeyData::createActionCollection(uint index, QWidget *receiver)
+void KeyData::createActionCollection(uint index, TQWidget *receiver)
{
Q_ASSERT( index<_cols.size() );
_cols[index] = new KActionCollection(receiver, this);
for (uint k=0; k<_data.size(); k++) {
- QString label = i18n(_data[k].label);
- QString name = QString("%2 %3").arg(index+1).arg(_data[k].name);
+ TQString label = i18n(_data[k].label);
+ TQString name = TQString("%2 %3").arg(index+1).arg(_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());
@@ -54,9 +54,9 @@ void KeyData::createActionCollection(uint index, QWidget *receiver)
if ( slot==0 ) {
SpecialData data;
data.enabled = false;
- data.pressed = new QSignal(this);
+ data.pressed = new TQSignal(this);
data.pressed->connect(receiver, _data[k].slot);
- data.released = new QSignal(this);
+ data.released = new TQSignal(this);
data.released->connect(receiver, _data[k].slotRelease);
_specActions[a] = data;
}
@@ -67,7 +67,7 @@ void KeyData::createActionCollection(uint index, QWidget *receiver)
void KeyData::setEnabled(uint index, bool enabled)
{
for (uint k=0; k<_cols[index]->count(); k++) {
- QMap<KAction *, SpecialData>::Iterator it =
+ TQMap<KAction *, SpecialData>::Iterator it =
_specActions.find(_cols[index]->action(k));
if ( it==_specActions.end() )
_cols[index]->action(k)->setEnabled(enabled);
@@ -88,12 +88,12 @@ void KeyData::save()
_cols[i]->writeShortcutSettings(group());
}
-void KeyData::keyEvent(QKeyEvent *e, bool pressed)
+void KeyData::keyEvent(TQKeyEvent *e, bool pressed)
{
if ( e->isAutoRepeat() ) return;
KKey key(e);
- QMap<KAction *, SpecialData>::Iterator it = _specActions.begin();
+ TQMap<KAction *, SpecialData>::Iterator it = _specActions.begin();
for(; it!=_specActions.end(); ++it) {
if ( !it.data().enabled ) continue;
if ( !it.key()->shortcut().contains(key) ) continue;