summaryrefslogtreecommitdiffstats
path: root/src/mechanics/mechanicsdocument.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-29 16:05:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-29 16:05:55 +0000
commit87a016680e3677da3993f333561e79eb0cead7d5 (patch)
treecbda2b4df8b8ee0d8d1617e6c75bec1e3ee0ccba /src/mechanics/mechanicsdocument.h
parent6ce3d1ad09c1096b5ed3db334e02859e45d5c32b (diff)
downloadktechlab-87a016680e3677da3993f333561e79eb0cead7d5.tar.gz
ktechlab-87a016680e3677da3993f333561e79eb0cead7d5.zip
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
Diffstat (limited to 'src/mechanics/mechanicsdocument.h')
-rw-r--r--src/mechanics/mechanicsdocument.h21
1 files changed, 11 insertions, 10 deletions
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<MechanicsItem*> MechItemList;
-typedef QValueList<MechanicsItem*> MechanicsItemList;
+typedef TQValueList<MechanicsItem*> MechItemList;
+typedef TQValueList<MechanicsItem*> MechanicsItemList;
/**
@author David Saxton
@@ -27,35 +27,36 @@ typedef QValueList<MechanicsItem*> 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;