summaryrefslogtreecommitdiffstats
path: root/src/view.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/view.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/view.h')
-rw-r--r--src/view.h28
1 files changed, 15 insertions, 13 deletions
diff --git a/src/view.h b/src/view.h
index d501363..802137c 100644
--- a/src/view.h
+++ b/src/view.h
@@ -14,8 +14,8 @@
#include <kstatusbar.h>
#include <kurl.h>
#include <kxmlguiclient.h>
-#include <qguardedptr.h>
-#include <qpixmap.h>
+#include <tqguardedptr.h>
+#include <tqpixmap.h>
class DCOPObject;
class Document;
@@ -24,11 +24,12 @@ class KTechlab;
class View;
class ViewContainer;
class ViewIface;
-class QVBoxLayout;
+class TQVBoxLayout;
class ViewStatusBar : public KStatusBar
{
Q_OBJECT
+ TQ_OBJECT
public:
ViewStatusBar( View *view );
@@ -48,26 +49,27 @@ public slots:
protected:
View *p_view;
- QLabel* m_modifiedLabel;
+ TQLabel* m_modifiedLabel;
KSqueezedTextLabel* m_fileNameLabel;
- QPixmap m_modifiedPixmap;
- QPixmap m_unmodifiedPixmap;
+ TQPixmap m_modifiedPixmap;
+ TQPixmap m_unmodifiedPixmap;
};
/**
@author David Saxton
*/
-class View : public QWidget, public KXMLGUIClient
+class View : public TQWidget, public KXMLGUIClient
{
Q_OBJECT
+ TQ_OBJECT
public:
View( Document *document, ViewContainer *viewContainer, uint viewAreaId, const char *name = 0 );
virtual ~View();
- KAction * action( const QString & name ) const;
+ KAction * action( const TQString & name ) const;
bool isFocused() const { return b_isFocused; }
/**
- * Pointer to the parent document
+ * Pointer to the tqparent document
*/
Document *document() const { return m_pDocument; }
/**
@@ -76,7 +78,7 @@ public:
DCOPObject * dcopObject() const;
/**
* Returns the dcop suffix for this view - a unique ID for the current the
- * view within all views associated with the parent document. DCOP name
+ * view within all views associated with the tqparent document. DCOP name
* will become "View#docID#viewID".
*/
unsigned dcopID() const { return m_dcopID; }
@@ -141,13 +143,13 @@ signals:
void viewUnfocused();
protected:
- QGuardedPtr<Document> m_pDocument;
+ TQGuardedPtr<Document> m_pDocument;
KTechlab * p_ktechlab;
- QGuardedPtr<ViewContainer> p_viewContainer;
+ TQGuardedPtr<ViewContainer> p_viewContainer;
uint m_viewAreaId;
bool b_isFocused;
ViewStatusBar *m_statusBar;
- QVBoxLayout *m_layout;
+ TQVBoxLayout *m_layout;
ViewIface * m_pViewIface;
unsigned m_dcopID;
};