summaryrefslogtreecommitdiffstats
path: root/ksirc/puke/pbutton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksirc/puke/pbutton.cpp')
-rw-r--r--ksirc/puke/pbutton.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/ksirc/puke/pbutton.cpp b/ksirc/puke/pbutton.cpp
index 309f2ac7..edccbe81 100644
--- a/ksirc/puke/pbutton.cpp
+++ b/ksirc/puke/pbutton.cpp
@@ -1,7 +1,7 @@
#include <stdio.h>
-#include <qpixmap.h>
+#include <tqpixmap.h>
#include <kdebug.h>
@@ -11,11 +11,11 @@ PObject *
PButton::createWidget(CreateArgs &ca)
{
PButton *pb = new PButton(ca.parent);
- QButton *qb;
+ TQButton *qb;
if(ca.parent != 0 && ca.parent->widget()->isWidgetType() == TRUE)
- qb = new QButton((QWidget *) ca.parent->widget());
+ qb = new TQButton((TQWidget *) ca.parent->widget());
else
- qb = new QButton();
+ qb = new TQButton();
pb->setWidget(qb);
pb->setWidgetId(ca.pwI);
return pb;
@@ -60,7 +60,7 @@ void PButton::messageHandler(int fd, PukeMessage *pm)
if(checkWidget() == FALSE)
return;
- widget()->setPixmap(QPixmap(pm->cArg));
+ widget()->setPixmap(TQPixmap(pm->cArg));
pmRet.iCommand = - pm->iCommand;
pmRet.iWinId = pm->iWinId;
@@ -82,24 +82,24 @@ void PButton::messageHandler(int fd, PukeMessage *pm)
}
}
-void PButton::setWidget(QObject *_qb)
+void PButton::setWidget(TQObject *_qb)
{
- if(_qb != 0 && _qb->inherits("QButton") == FALSE)
+ if(_qb != 0 && _qb->inherits("TQButton") == FALSE)
{
errorInvalidSet(_qb);
return;
}
- button = (QButton *) _qb;
+ button = (TQButton *) _qb;
if(button != 0){
- connect(button, SIGNAL(pressed()),
- this, SLOT(buttonPressed()));
- connect(button, SIGNAL(released()),
- this, SLOT(buttonReleased()));
- connect(button, SIGNAL(clicked()),
- this, SLOT(buttonClicked()));
- connect(button, SIGNAL(toggled(bool)),
- this, SLOT(buttonToggled(bool)));
+ connect(button, TQT_SIGNAL(pressed()),
+ this, TQT_SLOT(buttonPressed()));
+ connect(button, TQT_SIGNAL(released()),
+ this, TQT_SLOT(buttonReleased()));
+ connect(button, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(buttonClicked()));
+ connect(button, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(buttonToggled(bool)));
}
PWidget::setWidget(_qb);
@@ -107,7 +107,7 @@ void PButton::setWidget(QObject *_qb)
}
-QButton *PButton::widget()
+TQButton *PButton::widget()
{
return button;
}