From 87a016680e3677da3993f333561e79eb0cead7d5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 29 Jun 2011 16:05:55 +0000 Subject: TQt4 port ktechlab This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1238801 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/mechanics/mechanicsdocument.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'src/mechanics/mechanicsdocument.h') diff --git a/src/mechanics/mechanicsdocument.h b/src/mechanics/mechanicsdocument.h index dfe454f..80b1206 100644 --- a/src/mechanics/mechanicsdocument.h +++ b/src/mechanics/mechanicsdocument.h @@ -18,8 +18,8 @@ class MechanicsGroup; class MechanicsItem; class MechanicsSimulation; -typedef QValueList MechItemList; -typedef QValueList MechanicsItemList; +typedef TQValueList MechItemList; +typedef TQValueList MechanicsItemList; /** @author David Saxton @@ -27,35 +27,36 @@ typedef QValueList MechanicsItemList; class MechanicsDocument : public ItemDocument { Q_OBJECT + TQ_OBJECT public: - MechanicsDocument( const QString &caption, KTechlab *ktechlab, const char *name = 0 ); + MechanicsDocument( const TQString &caption, KTechlab *ktechlab, const char *name = 0 ); ~MechanicsDocument(); virtual View *createView( ViewContainer *viewContainer, uint viewAreaId, const char *name = 0l ); - virtual bool isValidItem( const QString &itemId ); + virtual bool isValidItem( const TQString &itemId ); virtual bool isValidItem( Item *item ); virtual void deleteSelection(); virtual void copy(); virtual void selectAll(); virtual ItemGroup *selectList() const; - MechanicsItem *mechanicsItemWithID( const QString &id ); - virtual Item* addItem( const QString &id, const QPoint &p, bool newItem ); + MechanicsItem *mechanicsItemWithID( const TQString &id ); + virtual Item* addItem( const TQString &id, const TQPoint &p, bool newItem ); /** - * Adds a QCanvasItem to the delete list to be deleted, when + * Adds a TQCanvasItem to the delete list to be deleted, when * flushDeleteList() is called */ - virtual void appendDeleteList( QCanvasItem *qcanvasItem ); + virtual void appendDeleteList( TQCanvasItem *qcanvasItem ); /** * Permantly deletes all items that have been added to the delete list with - * the appendDeleteList( QCanvasItem *qcanvasItem ) function. + * the appendDeleteList( TQCanvasItem *qcanvasItem ) function. */ virtual void flushDeleteList(); /** * Register an item with the ICNDocument. */ - virtual bool registerItem( QCanvasItem *qcanvasItem ); + virtual bool registerItem( TQCanvasItem *qcanvasItem ); protected: MechanicsGroup *m_selectList; -- cgit v1.2.1