summaryrefslogtreecommitdiffstats
path: root/lib/kofficeui/KoTabChooser.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kofficeui/KoTabChooser.h')
-rw-r--r--lib/kofficeui/KoTabChooser.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/lib/kofficeui/KoTabChooser.h b/lib/kofficeui/KoTabChooser.h
index 7a49f4958..f479ff940 100644
--- a/lib/kofficeui/KoTabChooser.h
+++ b/lib/kofficeui/KoTabChooser.h
@@ -20,11 +20,11 @@
#ifndef koTabChooser_h
#define koTabChooser_h
-#include <qframe.h>
+#include <tqframe.h>
#include <koffice_export.h>
-class QMouseEvent;
-class QPainter;
-class QPopupMenu;
+class TQMouseEvent;
+class TQPainter;
+class TQPopupMenu;
/**
* class KoTabChooser
@@ -32,9 +32,10 @@ class QPopupMenu;
class KoTabChooserPrivate;
-class KOFFICEUI_EXPORT KoTabChooser : public QFrame
+class KOFFICEUI_EXPORT KoTabChooser : public TQFrame
{
Q_OBJECT
+ TQ_OBJECT
public:
enum { TAB_LEFT = 1,
@@ -43,7 +44,7 @@ public:
TAB_DEC_PNT = 8,
TAB_ALL = TAB_LEFT | TAB_CENTER | TAB_RIGHT | TAB_DEC_PNT };
- KoTabChooser( QWidget *parent, int _flags );
+ KoTabChooser( TQWidget *tqparent, int _flags );
~KoTabChooser();
int getCurrTabType() { return currType; }
@@ -55,13 +56,13 @@ public:
void setReadWrite(bool _readWrite);
protected:
- void mousePressEvent( QMouseEvent *e );
- void drawContents( QPainter *painter );
+ void mousePressEvent( TQMouseEvent *e );
+ void drawContents( TQPainter *painter );
void setupMenu();
int flags;
int currType;
- QPopupMenu *rb_menu;
+ TQPopupMenu *rb_menu;
int mLeft;
int mRight;
int mCenter;
@@ -70,10 +71,10 @@ protected:
KoTabChooserPrivate *d;
protected slots:
- void rbLeft() { currType = TAB_LEFT; repaint( true ); }
- void rbCenter() { currType = TAB_CENTER; repaint( true ); }
- void rbRight() { currType = TAB_RIGHT; repaint( true ); }
- void rbDecPoint() { currType = TAB_DEC_PNT; repaint( true ); }
+ void rbLeft() { currType = TAB_LEFT; tqrepaint( true ); }
+ void rbCenter() { currType = TAB_CENTER; tqrepaint( true ); }
+ void rbRight() { currType = TAB_RIGHT; tqrepaint( true ); }
+ void rbDecPoint() { currType = TAB_DEC_PNT; tqrepaint( true ); }
};