summaryrefslogtreecommitdiffstats
path: root/kpacman/keys.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpacman/keys.cpp')
-rw-r--r--kpacman/keys.cpp68
1 files changed, 34 insertions, 34 deletions
diff --git a/kpacman/keys.cpp b/kpacman/keys.cpp
index a3c2c81..8dc5648 100644
--- a/kpacman/keys.cpp
+++ b/kpacman/keys.cpp
@@ -6,42 +6,42 @@
#include <keys.h>
#include <kaccel.h>
-#include <qpushbt.h>
-#include <qlabel.h>
-#include <qframe.h>
-#include <qkeycode.h>
-#include <qpixmap.h>
-#include <qstring.h>
-
-Keys::Keys( QWidget *parent, const char *name)
- : QDialog( parent, name, TRUE )
+#include <ntqpushbt.h>
+#include <ntqlabel.h>
+#include <ntqframe.h>
+#include <ntqkeycode.h>
+#include <ntqpixmap.h>
+#include <ntqstring.h>
+
+Keys::Keys( TQWidget *parent, const char *name)
+ : TQDialog( parent, name, TRUE )
{
KStandardDirs *dirs = KGlobal::dirs();
- QPushButton *okButton = new QPushButton(this);
+ TQPushButton *okButton = new TQPushButton(this);
okButton->setText(i18n("Ok"));
okButton->setFixedSize(okButton->size());
connect( okButton, SIGNAL(clicked()),this, SLOT(ok()) );
okButton->move(20,210);
- QPushButton *defaultButton = new QPushButton(this);
+ TQPushButton *defaultButton = new TQPushButton(this);
defaultButton->setText(i18n("Defaults"));
defaultButton->setFixedSize(defaultButton->size());
connect( defaultButton, SIGNAL(clicked()),this, SLOT(defaults()) );
defaultButton->move(140,210);
- QPushButton *cancelButton = new QPushButton(this);
+ TQPushButton *cancelButton = new TQPushButton(this);
cancelButton->setText(i18n("Cancel"));
cancelButton->setFixedSize(cancelButton->size());
connect( cancelButton, SIGNAL(clicked()),this, SLOT(reject()) );
cancelButton->move(260,210);
- QFrame *separator = new QFrame(this);
- separator->setFrameStyle( QFrame::HLine | QFrame::Sunken );
+ TQFrame *separator = new TQFrame(this);
+ separator->setFrameStyle( TQFrame::HLine | TQFrame::Sunken );
separator->setGeometry( 20, 190, 340, 4 );
for ( int x = 0; x < 4; x++) {
- QLabel *l = new QLabel(this);
+ TQLabel *l = new TQLabel(this);
l->setAlignment(AlignCenter);
labels[x] = l;
}
@@ -51,32 +51,32 @@ Keys::Keys( QWidget *parent, const char *name)
labels[2]->setGeometry( 20, 92, 100, 20 );
labels[3]->setGeometry(265, 92, 100, 20 );
- QString pixPath;
+ TQString pixPath;
- QPushButton *up = new QPushButton(this);
+ TQPushButton *up = new TQPushButton(this);
pixPath = dirs->findResource("appdata", "pics/up.xpm");
- up->setPixmap( QPixmap(pixPath));
+ up->setPixmap( TQPixmap(pixPath));
up->setFixedSize(up->pixmap()->size());
connect( up, SIGNAL(clicked()),this, SLOT(butUp()) );
up->move(180, 50);
- QPushButton *down = new QPushButton(this);
+ TQPushButton *down = new TQPushButton(this);
pixPath = dirs->findResource("appdata", "pics/down.xpm");
- down->setPixmap( QPixmap(pixPath));
+ down->setPixmap( TQPixmap(pixPath));
down->setFixedSize(down->pixmap()->size());
connect( down, SIGNAL(clicked()),this, SLOT(butDown()) );
down->move(180, 130);
- QPushButton *left = new QPushButton(this);
+ TQPushButton *left = new TQPushButton(this);
pixPath = dirs->findResource("appdata", "pics/left.xpm");
- left->setPixmap( QPixmap(pixPath));
+ left->setPixmap( TQPixmap(pixPath));
left->setFixedSize(left->pixmap()->size());
connect( left, SIGNAL(clicked()),this, SLOT(butLeft()) );
left->move(140, 90);
- QPushButton *right = new QPushButton(this);
+ TQPushButton *right = new TQPushButton(this);
pixPath = dirs->findResource("appdata", "pics/right.xpm");
- right->setPixmap( QPixmap(pixPath));
+ right->setPixmap( TQPixmap(pixPath));
right->setFixedSize(right->pixmap()->size());
connect( right, SIGNAL(clicked()),this, SLOT(butRight()) );
right->move(220, 90);
@@ -88,10 +88,10 @@ Keys::Keys( QWidget *parent, const char *name)
init();
}
-void Keys::keyPressEvent( QKeyEvent *e )
+void Keys::keyPressEvent( TQKeyEvent *e )
{
uint kCode = e->key() & ~(SHIFT | CTRL | ALT);
- QString string = KAccel::keyToString(kCode);
+ TQString string = KAccel::keyToString(kCode);
if (lab != 0) {
if ( string.isNull() )
@@ -131,17 +131,17 @@ void Keys::getKey(int i)
focusIn(labels[i]);
}
-void Keys::focusOut(QLabel *l)
+void Keys::focusOut(TQLabel *l)
{
- l->setFrameStyle( QFrame::NoFrame );
+ l->setFrameStyle( TQFrame::NoFrame );
l->setBackgroundColor(backgroundColor());
l->repaint();
}
-void Keys::focusIn(QLabel *l)
+void Keys::focusIn(TQLabel *l)
{
lab = l;
- lab->setFrameStyle( QFrame::Panel | QFrame::Sunken );
+ lab->setFrameStyle( TQFrame::Panel | TQFrame::Sunken );
lab->setBackgroundColor(white);
lab->repaint();
}
@@ -161,19 +161,19 @@ void Keys::defaults()
void Keys::init()
{
- QString up("Up");
+ TQString up("Up");
up = kapp->config()->readEntry("upKey", (const char*) up);
labels[0]->setText(up);
- QString down("Down");
+ TQString down("Down");
down = kapp->config()->readEntry("downKey", (const char*) down);
labels[1]->setText(down);
- QString left("Left");
+ TQString left("Left");
left = kapp->config()->readEntry("leftKey", (const char*) left);
labels[2]->setText(left);
- QString right("Right");
+ TQString right("Right");
right = kapp->config()->readEntry("rightKey", (const char*) right);
labels[3]->setText(right);
}