summaryrefslogtreecommitdiffstats
path: root/kplato/kptview.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kplato/kptview.h
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kplato/kptview.h')
-rw-r--r--kplato/kptview.h35
1 files changed, 18 insertions, 17 deletions
diff --git a/kplato/kptview.h b/kplato/kptview.h
index 174a93d2..099895e1 100644
--- a/kplato/kptview.h
+++ b/kplato/kptview.h
@@ -24,11 +24,11 @@
#include <KoView.h>
#include "kptcontext.h"
-class QListViewItem;
-class QPopupMenu;
-class QHBoxLayout;
-class QTabWidget;
-class QWidgetStack;
+class TQListViewItem;
+class TQPopupMenu;
+class TQHBoxLayout;
+class TQTabWidget;
+class TQWidgetStack;
class KListView;
class KPrinter;
@@ -57,9 +57,10 @@ class Context;
class View : public KoView {
Q_OBJECT
+ TQ_OBJECT
public:
- View(Part* part, QWidget* parent=0, const char* name=0);
+ View(Part* part, TQWidget* tqparent=0, const char* name=0);
~View();
/**
* Support zooming.
@@ -73,7 +74,7 @@ public:
virtual void setupPrinter(KPrinter &printer);
virtual void print(KPrinter &printer);
- QPopupMenu *popupMenu(const QString& name);
+ TQPopupMenu *popupMenu(const TQString& name);
void projectCalculate();
@@ -82,7 +83,7 @@ public:
virtual bool setContext(Context &context);
virtual void getContext(Context &context) const;
- void setTaskActionsEnabled(QWidget *w, bool on);
+ void setTaskActionsEnabled(TQWidget *w, bool on);
void setScheduleActionsEnabled();
public slots:
@@ -126,9 +127,9 @@ public slots:
void slotExportGantt(); // testing
void setTaskActionsEnabled(bool on);
- void slotRenameNode(Node *node, const QString& name);
+ void slotRenameNode(Node *node, const TQString& name);
- void slotPopupMenu(const QString& menuname, const QPoint & pos);
+ void slotPopupMenu(const TQString& menuname, const TQPoint & pos);
protected slots:
void slotProjectCalendar();
@@ -151,10 +152,10 @@ protected slots:
void slotMoveTaskDown();
void slotConnectNode();
- void slotChanged(QWidget *);
+ void slotChanged(TQWidget *);
void slotChanged();
- void slotAboutToShow(QWidget *widget);
+ void slotAboutToShow(TQWidget *widget);
#ifndef NDEBUG
void slotPrintDebug();
@@ -171,18 +172,18 @@ protected slots:
protected:
virtual void updateReadWrite(bool readwrite);
Node *currentTask();
- void updateView(QWidget *widget);
+ void updateView(TQWidget *widget);
private:
GanttView *m_ganttview;
- QHBoxLayout *m_ganttlayout;
+ TQHBoxLayout *m_gantttqlayout;
PertView *m_pertview;
- QHBoxLayout *m_pertlayout;
- QWidgetStack *m_tab;
+ TQHBoxLayout *m_perttqlayout;
+ TQWidgetStack *m_tab;
ResourceView *m_resourceview;
AccountsView *m_accountsview;
// ReportView *m_reportview;
- QPtrList<QString> m_reportTemplateFiles;
+ TQPtrList<TQString> m_reportTemplateFiles;
bool m_baselineMode;