diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-05 22:07:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-05 22:07:15 +0000 |
commit | 421b60af92c83b889f8903c2898f2bd07186fcd8 (patch) | |
tree | ad873a24c9438baed4942fda795430a4c3dc9a9a /src/kbfxplasmacanvasabstractitem.h | |
parent | 39e896bddf25bf34cbf8be814d959181e2c1d1dd (diff) | |
download | kbfx-421b60af92c83b889f8903c2898f2bd07186fcd8.tar.gz kbfx-421b60af92c83b889f8903c2898f2bd07186fcd8.zip |
TQt4 port kbfx
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kbfx@1230544 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kbfxplasmacanvasabstractitem.h')
-rw-r--r-- | src/kbfxplasmacanvasabstractitem.h | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/src/kbfxplasmacanvasabstractitem.h b/src/kbfxplasmacanvasabstractitem.h index 7110486..c1c8ac5 100644 --- a/src/kbfxplasmacanvasabstractitem.h +++ b/src/kbfxplasmacanvasabstractitem.h @@ -22,33 +22,34 @@ #ifndef KBFX_PLASMA_CANVAS_ABSTRACT_ITEM_H #define KBFX_PLASMA_CANVAS_ABSTRACT_ITEM_H -#include <qcanvas.h> -#include <qpainter.h> +#include <tqcanvas.h> +#include <tqpainter.h> #include "kbfxplasmacanvasrtti.h" -#include <qtimer.h> +#include <tqtimer.h> #include <kdesktopfile.h> #include <kstandarddirs.h> #include <kiconloader.h> #include "kbfxdatasource.h" #include <krun.h> -class KbfxPlasmaCanvasAbstractItem:public QObject,public QCanvasSprite +class KbfxPlasmaCanvasAbstractItem:public TQObject,public TQCanvasSprite { Q_OBJECT + TQ_OBJECT public: typedef enum {EXECUTABLE=0,SEPARATOR,INDEX,OTHER} Type; // typedef enum {RASTER=0,VECTOR,NATIVE} SkinMode; - KbfxPlasmaCanvasAbstractItem ( QCanvasPixmapArray * a, QCanvas * canvas ); + KbfxPlasmaCanvasAbstractItem ( TQCanvasPixmapArray * a, TQCanvas * canvas ); virtual ~KbfxPlasmaCanvasAbstractItem (); void setCurrent ( bool ); virtual Type type() { return m_type; } virtual void setType ( Type t ) { m_type = t;} - QString name() { if ( m_source != 0 ) return m_source->name(); else return QString ( "Not Set" );}; + TQString name() { if ( m_source != 0 ) return m_source->name(); else return TQString ( "Not Set" );}; void setSource ( KbfxDataSource src ); bool isCurrent(); @@ -56,25 +57,25 @@ class KbfxPlasmaCanvasAbstractItem:public QObject,public QCanvasSprite virtual int width() { return m_width;} - virtual bool lookup ( QString str ) {str = str ; return false;} + virtual bool lookup ( TQString str ) {str = str ; return false;} virtual int rtti() const { return CANVASITEM;} - virtual void draw ( QPainter & pe ); + virtual void draw ( TQPainter & pe ); - virtual void drawContent ( QPainter * pe ); + virtual void drawContent ( TQPainter * pe ); - virtual QPixmap dragPixmap(); + virtual TQPixmap dragPixmap(); //Event Handling - virtual void mousePressEvent ( QMouseEvent * e ); - virtual void mouseMoveEvent ( QMouseEvent * e ); - virtual void enterEvent ( QEvent * e ); - virtual void mouseReleaseEvent ( QMouseEvent * e ); + virtual void mousePressEvent ( TQMouseEvent * e ); + virtual void mouseMoveEvent ( TQMouseEvent * e ); + virtual void enterEvent ( TQEvent * e ); + virtual void mouseReleaseEvent ( TQMouseEvent * e ); - virtual void setLabelText ( QString s ); + virtual void setLabelText ( TQString s ); public slots: virtual void hideit(); |