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 /kpresenter/KPrTextPreview.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 'kpresenter/KPrTextPreview.h')
-rw-r--r-- | kpresenter/KPrTextPreview.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/kpresenter/KPrTextPreview.h b/kpresenter/KPrTextPreview.h index e9d91616..b4914251 100644 --- a/kpresenter/KPrTextPreview.h +++ b/kpresenter/KPrTextPreview.h @@ -1,28 +1,29 @@ #ifndef __textpreview_h__ #define __textpreview_h__ -#include <qframe.h> +#include <tqframe.h> #include "global.h" -class KPrTextPreview : public QFrame +class KPrTextPreview : public TQFrame { Q_OBJECT + TQ_OBJECT public: - KPrTextPreview( QWidget* parent, const char* name = 0 ); + KPrTextPreview( TQWidget* tqparent, const char* name = 0 ); ~KPrTextPreview() {} - void setShadowDirection( ShadowDirection sd ) { shadowDirection = sd; repaint( true ); } - void setShadowDistance( int sd ) { shadowDistance = sd; repaint( true ); } - void setShadowColor( const QColor &sc ) { shadowColor = sc; repaint( true ); } - void setAngle( double a ) { angle = a; repaint( true ); } + void setShadowDirection( ShadowDirection sd ) { shadowDirection = sd; tqrepaint( true ); } + void setShadowDistance( int sd ) { shadowDistance = sd; tqrepaint( true ); } + void setShadowColor( const TQColor &sc ) { shadowColor = sc; tqrepaint( true ); } + void setAngle( double a ) { angle = a; tqrepaint( true ); } protected: - void drawContents( QPainter* ); + void drawContents( TQPainter* ); ShadowDirection shadowDirection; int shadowDistance; - QColor shadowColor; + TQColor shadowColor; double angle; }; |