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/document.h | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'src/document.h') diff --git a/src/document.h b/src/document.h index eb465ad..b9bc65f 100644 --- a/src/document.h +++ b/src/document.h @@ -12,7 +12,7 @@ #define DOCUMENT_H #include -#include +#include class DCOPObject; class Document; @@ -21,14 +21,15 @@ class KTechlab; class View; class ViewContainer; -typedef QValueList > ViewList; +typedef TQValueList > ViewList; /** @author David Saxton */ -class Document : public QObject +class Document : public TQObject { Q_OBJECT + TQ_OBJECT public: enum DocumentType { @@ -39,7 +40,7 @@ public: dt_text, dt_pinMapEditor }; - Document( const QString &caption, KTechlab *ktechlab, const char *name = 0 ); + Document( const TQString &caption, KTechlab *ktechlab, const char *name = 0 ); virtual ~Document(); /** * If the user has created a new document from the new file dialog, and @@ -51,12 +52,12 @@ public: /** * Caption of document, e.g. "Untitled 2" */ - QString caption() const { return m_caption; } + TQString caption() const { return m_caption; } /** * Set the caption of the document, to be displayed in the tab bar when * active */ - void setCaption( const QString &caption ); + void setCaption( const TQString &caption ); /** * Return the dcop object for this document */ @@ -99,7 +100,7 @@ public: * Prompts the user for a url, with the given types for the filter. * If user accepts, returns true, and set the url to the new url. */ - bool getURL( const QString &types ); + bool getURL( const TQString &types ); /** * Attempts to open a url, and returns true if succesful. * You must reinherit this function. @@ -132,7 +133,7 @@ public: virtual void fileSaveAs() = 0; /** * Attempts to close the file without saving, prompting the user if the - * file has been modified. If succesful, calls QObject::deleteLater(), and + * file has been modified. If succesful, calls TQObject::deleteLater(), and * returns true (otherwise returns false). */ virtual bool fileClose(); @@ -212,7 +213,7 @@ signals: void viewUnfocused(); private slots: - void slotViewDestroyed( QObject *obj ); + void slotViewDestroyed( TQObject *obj ); void slotViewFocused( View *view ); protected: @@ -223,10 +224,10 @@ protected: bool b_modified; KTechlab *p_ktechlab; - QGuardedPtr p_activeView; + TQGuardedPtr p_activeView; DocumentType m_type; ViewList m_viewList; - QString m_caption; + TQString m_caption; bool m_bAddToProjectOnSave; DocumentIface * m_pDocumentIface; unsigned m_dcopID; -- cgit v1.2.1