summaryrefslogtreecommitdiffstats
path: root/lib/kopainter/koFrameButton.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kopainter/koFrameButton.cc')
-rw-r--r--lib/kopainter/koFrameButton.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/kopainter/koFrameButton.cc b/lib/kopainter/koFrameButton.cc
index cb752363..80610422 100644
--- a/lib/kopainter/koFrameButton.cc
+++ b/lib/kopainter/koFrameButton.cc
@@ -20,8 +20,8 @@
#include "koFrameButton.h"
-KoFrameButton::KoFrameButton(QWidget *parent, const char *name):
-QLabel(parent, name)
+KoFrameButton::KoFrameButton(TQWidget *tqparent, const char *name):
+TQLabel(tqparent, name)
{
setAutoResize(true);
setFrameStyle(Panel | Raised);
@@ -31,19 +31,19 @@ QLabel(parent, name)
mToggle = false;
}
-KoFrameButton::KoFrameButton(const QString &text, QWidget *parent, const char *name):
-QLabel(parent, name)
+KoFrameButton::KoFrameButton(const TQString &text, TQWidget *tqparent, const char *name):
+TQLabel(tqparent, name)
{
setFrameStyle(Panel | Raised);
setLineWidth(1);
setText(text);
- setAlignment(AlignHCenter | AlignVCenter);
+ tqsetAlignment(AlignHCenter | AlignVCenter);
mActive = false;
mToggle = false;
}
-KoFrameButton::KoFrameButton(const QPixmap &pixmap, QWidget *parent, const char *name):
-QLabel(parent, name)
+KoFrameButton::KoFrameButton(const TQPixmap &pixmap, TQWidget *tqparent, const char *name):
+TQLabel(tqparent, name)
{
setFrameStyle(Panel | Raised);
setLineWidth(1);
@@ -52,12 +52,12 @@ QLabel(parent, name)
mToggle = false;
}
-void KoFrameButton::mousePressEvent(QMouseEvent *)
+void KoFrameButton::mousePressEvent(TQMouseEvent *)
{
setFrameStyle(Panel | Sunken);
}
-void KoFrameButton::mouseReleaseEvent(QMouseEvent *)
+void KoFrameButton::mouseReleaseEvent(TQMouseEvent *)
{
if(mToggle)
{
@@ -93,10 +93,10 @@ void KoFrameButton::setToggleButton(bool v)
mToggle = v;
}
-void KoFrameButton::setText(const QString &t)
+void KoFrameButton::setText(const TQString &t)
{
mText = t;
- QLabel::setText(t);
+ TQLabel::setText(t);
}
#include "koFrameButton.moc"