diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /lib/kofficeui/KoTabChooser.h | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-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/kofficeui/KoTabChooser.h')
-rw-r--r-- | lib/kofficeui/KoTabChooser.h | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/lib/kofficeui/KoTabChooser.h b/lib/kofficeui/KoTabChooser.h index 7a49f495..f479ff94 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 ); } }; |