summaryrefslogtreecommitdiffstats
path: root/lib/kopainter/koFrameButton.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /lib/kopainter/koFrameButton.h
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kopainter/koFrameButton.h')
-rw-r--r--lib/kopainter/koFrameButton.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/lib/kopainter/koFrameButton.h b/lib/kopainter/koFrameButton.h
index c540fd9f..d05e1d1f 100644
--- a/lib/kopainter/koFrameButton.h
+++ b/lib/kopainter/koFrameButton.h
@@ -21,18 +21,19 @@
#ifndef __ko_framebutton_h__
#define __ko_framebutton_h__
-#include <qlabel.h>
+#include <tqlabel.h>
-class QPixmap;
-class QString;
+class TQPixmap;
+class TQString;
-class KoFrameButton : public QLabel
+class KoFrameButton : public TQLabel
{
Q_OBJECT
+ TQ_OBJECT
public:
- KoFrameButton(QWidget *parent = 0, const char *name = 0);
- KoFrameButton(const QString &text, QWidget *parent = 0, const char *name = 0);
- KoFrameButton(const QPixmap &pixmap, QWidget *parent = 0, const char *name = 0);
+ KoFrameButton(TQWidget *tqparent = 0, const char *name = 0);
+ KoFrameButton(const TQString &text, TQWidget *tqparent = 0, const char *name = 0);
+ KoFrameButton(const TQPixmap &pixmap, TQWidget *tqparent = 0, const char *name = 0);
bool isOn() {return mActive; }
void setOn(bool v);
@@ -40,21 +41,21 @@ public:
bool isToggleButton() {return mToggle; }
void setToggleButton(bool v);
- QString text() {return mText; }
- virtual void setText(const QString &t);
+ TQString text() {return mText; }
+ virtual void setText(const TQString &t);
signals:
void clicked();
- void clicked(const QString &);
+ void clicked(const TQString &);
protected:
- void mousePressEvent(QMouseEvent *);
- void mouseReleaseEvent(QMouseEvent *);
+ void mousePressEvent(TQMouseEvent *);
+ void mouseReleaseEvent(TQMouseEvent *);
private:
bool mActive;
bool mToggle;
- QString mText;
+ TQString mText;
};
#endif