summaryrefslogtreecommitdiffstats
path: root/src/docmanager.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/docmanager.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/docmanager.h')
-rw-r--r--src/docmanager.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/docmanager.h b/src/docmanager.h
index 0ba300e..36f7196 100644
--- a/src/docmanager.h
+++ b/src/docmanager.h
@@ -12,7 +12,7 @@
#define DOCMANAGER_H
#include <kurl.h>
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
class CircuitDocument;
class DocManager;
@@ -27,16 +27,17 @@ class ViewArea;
class KAction;
-typedef QValueList<Document*> DocumentList;
-typedef QMap< KURL, Document* > URLDocumentMap;
-typedef QValueList<KAction*> KActionList;
+typedef TQValueList<Document*> DocumentList;
+typedef TQMap< KURL, Document* > URLDocumentMap;
+typedef TQValueList<KAction*> KActionList;
/**
@author David Saxton
*/
-class DocManager : public QObject
+class DocManager : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
static DocManager * self( KTechlab * ktechlab = 0l );
~DocManager();
@@ -67,7 +68,7 @@ public:
* of Document and whether it is the first one or not
* @param type Document::DocumentType - type of Document
*/
- QString untitledName( int type );
+ TQString untitledName( int type );
/**
* Checks to see if a document with the given URL is already open, and
* returns a pointer to that Document if so - otherwises returns null
@@ -125,7 +126,7 @@ protected slots:
* Does the appropriate enabling / disabling of actions, connections, etc
*/
void slotViewUnfocused();
- void documentDestroyed( QObject *obj );
+ void documentDestroyed( TQObject *obj );
protected:
/**
@@ -156,8 +157,8 @@ protected:
int m_countOther;
KTechlab * const p_ktechlab;
- QGuardedPtr<View> p_focusedView;
- QGuardedPtr<Document> p_connectedDocument;
+ TQGuardedPtr<View> p_focusedView;
+ TQGuardedPtr<Document> p_connectedDocument;
DocManagerIface *m_pIface;
unsigned m_nextDocumentID;