diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-29 16:05:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-29 16:05:55 +0000 |
commit | 87a016680e3677da3993f333561e79eb0cead7d5 (patch) | |
tree | cbda2b4df8b8ee0d8d1617e6c75bec1e3ee0ccba /src/flowcodedocument.h | |
parent | 6ce3d1ad09c1096b5ed3db334e02859e45d5c32b (diff) | |
download | ktechlab-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/flowcodedocument.h')
-rw-r--r-- | src/flowcodedocument.h | 19 |
1 files changed, 10 insertions, 9 deletions
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 <qguardedptr.h> +#include <tqguardedptr.h> class KTechlab; class FlowCode; @@ -22,10 +22,10 @@ class PicItem; class FlowPart; class MicroSettings; class TextDocument; -class QString; +class TQString; -typedef QValueList<FlowPart*> FlowPartList; -typedef QMap<QString, int > StringIntMap; +typedef TQValueList<FlowPart*> FlowPartList; +typedef TQMap<TQString, int > StringIntMap; /** @short View for editing FlowCode @@ -34,8 +34,9 @@ typedef QMap<QString, int > 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<TextDocument> m_pLastTextOutputTarget; + TQGuardedPtr<TextDocument> 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 |