From 421b60af92c83b889f8903c2898f2bd07186fcd8 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 5 May 2011 22:07:15 +0000 Subject: 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 --- src/kbfxplasmacanvasgroup.h | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'src/kbfxplasmacanvasgroup.h') diff --git a/src/kbfxplasmacanvasgroup.h b/src/kbfxplasmacanvasgroup.h index 1d6e2da..5ee60be 100644 --- a/src/kbfxplasmacanvasgroup.h +++ b/src/kbfxplasmacanvasgroup.h @@ -22,22 +22,23 @@ #ifndef KBFX_PLASMA_CANVAS_GROUP_H #define KBFX_PLASMA_CANVAS_GROUP_H -#include -#include +#include +#include #include "kbfxplasmacanvasabstractitem.h" -#include -class QCanvasItem; -class QRect; +#include +class TQCanvasItem; +class TQRect; -class KbfxPlasmaCanvasGroup:public QObject +class KbfxPlasmaCanvasGroup:public TQObject { Q_OBJECT + TQ_OBJECT public: - typedef QPtrList ItemList; - typedef QPtrListIterator ItemListIter; + typedef TQPtrList ItemList; + typedef TQPtrListIterator ItemListIter; //a Global mapof Groups - typedef QMap ItemListMap; + typedef TQMap ItemListMap; KbfxPlasmaCanvasGroup(); virtual ~KbfxPlasmaCanvasGroup(); @@ -46,15 +47,15 @@ class KbfxPlasmaCanvasGroup:public QObject bool deleteItem ( KbfxPlasmaCanvasAbstractItem * ); void move ( int x,int y ); void moveBy ( int x,int y ); - QString name(); - QRect boundingRect(); + TQString name(); + TQRect boundingRect(); int count(); int height(); int width(); static KbfxPlasmaCanvasGroup * groupContaining ( KbfxPlasmaCanvasAbstractItem * ); - QString groupName(); + TQString groupName(); uint groupID(); - void setGroupName ( QString name ); + void setGroupName ( TQString name ); void setGroupID ( uint ); bool isShaded() {return m_shaded;}; virtual int rtti() { return 1005;} @@ -82,7 +83,7 @@ class KbfxPlasmaCanvasGroup:public QObject //state variables bool m_shaded; bool m_visible; - QString m_name; + TQString m_name; uint m_id; int m_sepheight; int m_count; -- cgit v1.2.3