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/flowcodedocument.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'src/flowcodedocument.h') diff --git a/src/flowcodedocument.h b/src/flowcodedocument.h index bb28ae4..5b2596d 100644 --- a/src/flowcodedocument.h +++ b/src/flowcodedocument.h @@ -13,7 +13,7 @@ #include "icndocument.h" -#include +#include class KTechlab; class FlowCode; @@ -22,10 +22,10 @@ class PicItem; class FlowPart; class MicroSettings; class TextDocument; -class QString; +class TQString; -typedef QValueList FlowPartList; -typedef QMap StringIntMap; +typedef TQValueList FlowPartList; +typedef TQMap StringIntMap; /** @short View for editing FlowCode @@ -34,8 +34,9 @@ typedef QMap StringIntMap; class FlowCodeDocument : public ICNDocument { Q_OBJECT + TQ_OBJECT public: - FlowCodeDocument( const QString &caption, KTechlab *ktechlab, const char *name = 0L); + FlowCodeDocument( const TQString &caption, KTechlab *ktechlab, const char *name = 0L); ~FlowCodeDocument(); virtual View *createView( ViewContainer *viewContainer, uint viewAreaId, const char *name = 0l ); @@ -50,7 +51,7 @@ class FlowCodeDocument : public ICNDocument * returned by MicroLibrary for the given id. The pic type must be set before anything useful * (such as compilage) can be done. */ - void setPicType( const QString &id ); + void setPicType( const TQString &id ); enum ConvertToTarget { @@ -80,17 +81,17 @@ class FlowCodeDocument : public ICNDocument /** * Called when a variable name has changed (from an entry box) */ - void varNameChanged( const QString &newValue, const QString &oldValue ); + void varNameChanged( const TQString &newValue, const TQString &oldValue ); protected: virtual bool isValidItem( Item *item ); - virtual bool isValidItem( const QString &itemId ); + virtual bool isValidItem( const TQString &itemId ); private slots: void setLastTextOutputTarget( TextDocument * target ); private: - QGuardedPtr m_pLastTextOutputTarget; + TQGuardedPtr m_pLastTextOutputTarget; MicroInfo *m_microInfo; // Stores information about the PIC MicroSettings *m_microSettings; // Stores initial settings of the PIC PicItem *m_picItem; // Allows the user to change the PIC settings -- cgit v1.2.1