diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kplato/kptganttview.h | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-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/kptganttview.h')
-rw-r--r-- | kplato/kptganttview.h | 61 |
1 files changed, 31 insertions, 30 deletions
diff --git a/kplato/kptganttview.h b/kplato/kptganttview.h index 8a249abc..b6d0b8a4 100644 --- a/kplato/kptganttview.h +++ b/kplato/kptganttview.h @@ -23,15 +23,15 @@ #include "kptcontext.h" -#include <qsplitter.h> -#include <qcursor.h> +#include <tqsplitter.h> +#include <tqcursor.h> -class QLayout; -class QListViewItem; -class QPoint; -class QListView; -class QLineEdit; -class QSpinBox; +class TQLayout; +class TQListViewItem; +class TQPoint; +class TQListView; +class TQLineEdit; +class TQSpinBox; class KDGanttViewSummaryItem; class KDGanttViewTaskItem; @@ -52,13 +52,14 @@ class Task; class Project; class Relation; -class GanttView : public QSplitter +class GanttView : public TQSplitter { Q_OBJECT + TQ_OBJECT public: - GanttView(QWidget *parent, bool readWrite=true, const char* name = 0 ); + GanttView(TQWidget *tqparent, bool readWrite=true, const char* name = 0 ); //~GanttView(); @@ -70,7 +71,7 @@ class GanttView : public QSplitter /** * Call draw() or drawChanges() before calling this. */ - void drawOnPainter(QPainter* painter, const QRect rect); + void drawOnPainter(TQPainter* painter, const TQRect rect); Node *currentNode() const; @@ -79,7 +80,7 @@ class GanttView : public QSplitter void addTaskLink(KDGanttViewTaskLink *link); - bool exportGantt(QIODevice* device); // testing + bool exportGantt(TQIODevice* device); // testing virtual bool setContext(Context::Ganttview &context, Project &project); virtual void getContext(Context::Ganttview &context) const; @@ -98,19 +99,19 @@ signals: void addRelation(Node *par, Node *child, int linkType); void itemDoubleClicked(); - void itemRenamed(Node*, const QString&); + void itemRenamed(Node*, const TQString&); /** * Requests a specific type of popup menu. * Usually a KPlato::View object is connected to this signal. */ - void requestPopupMenu(const QString& menuname, const QPoint & pos); + void requestPopupMenu(const TQString& menuname, const TQPoint & pos); public slots: /** * Determines the correct type of popup menu and emits requestPopupMenu() */ - void popupMenuRequested(KDGanttViewItem * item, const QPoint & pos, int); + void popupMenuRequested(KDGanttViewItem * item, const TQPoint & pos, int); void setShowExpected(bool on) { m_showExpected = on; } void setShowOptimistic(bool on) { m_showOptimistic = on; } @@ -127,8 +128,8 @@ public slots: private slots: void currentItemChanged(KDGanttViewItem *); - void slotItemDoubleClicked(QListViewItem*); - void slotItemRenamed(KDGanttViewItem*, int, const QString&); + void slotItemDoubleClicked(TQListViewItem*); + void slotItemRenamed(KDGanttViewItem*, int, const TQString&); void slotLinkItems(KDGanttViewItem* from, KDGanttViewItem* to, int linkType); @@ -138,7 +139,7 @@ private slots: protected: int linkTypeToRelation(int linkType); - void setRenameEnabled(QListViewItem *item, bool on); + void setRenameEnabled(TQListViewItem *item, bool on); private: KDGanttViewItem *findItem(Node *node); KDGanttViewItem *findItem(Node *node, KDGanttViewItem *item); @@ -162,20 +163,20 @@ private: void modifyTask(KDGanttViewItem *item, Task *task); void modifyMilestone(KDGanttViewItem *item, Task *task); - KDGanttViewItem *addNode(KDGanttViewItem *parentItem, Node *node,KDGanttViewItem *after=0); + KDGanttViewItem *addNode(KDGanttViewItem *tqparentItem, Node *node,KDGanttViewItem *after=0); - KDGanttViewItem *addProject(KDGanttViewItem *parentItem, Node *node, KDGanttViewItem *after=0); - KDGanttViewItem *addSubProject(KDGanttViewItem *parentItem, Node *node, KDGanttViewItem *after=0); - KDGanttViewItem *addSummaryTask(KDGanttViewItem *parentItem, Task *task, KDGanttViewItem *after=0); - KDGanttViewItem *addTask(KDGanttViewItem *parentItem, Task *task, KDGanttViewItem *after=0); - KDGanttViewItem *addMilestone(KDGanttViewItem *parentItem, Task *task, KDGanttViewItem *after=0); + KDGanttViewItem *addProject(KDGanttViewItem *tqparentItem, Node *node, KDGanttViewItem *after=0); + KDGanttViewItem *addSubProject(KDGanttViewItem *tqparentItem, Node *node, KDGanttViewItem *after=0); + KDGanttViewItem *addSummaryTask(KDGanttViewItem *tqparentItem, Task *task, KDGanttViewItem *after=0); + KDGanttViewItem *addTask(KDGanttViewItem *tqparentItem, Task *task, KDGanttViewItem *after=0); + KDGanttViewItem *addMilestone(KDGanttViewItem *tqparentItem, Task *task, KDGanttViewItem *after=0); void drawChildren(KDGanttViewItem *item, Node &node); - void drawProject(KDGanttViewItem *parentItem, Node *node); - void drawSubProject(KDGanttViewItem *parentItem, Node *node); - void drawSummaryTask(KDGanttViewItem *parentItem, Task *task); - void drawTask(KDGanttViewItem *parentItem, Task *task); - void drawMilestone(KDGanttViewItem *parentItem, Task *task); + void drawProject(KDGanttViewItem *tqparentItem, Node *node); + void drawSubProject(KDGanttViewItem *tqparentItem, Node *node); + void drawSummaryTask(KDGanttViewItem *tqparentItem, Task *task); + void drawTask(KDGanttViewItem *tqparentItem, Task *task); + void drawMilestone(KDGanttViewItem *tqparentItem, Task *task); void drawRelations(); void drawRelations(KDGanttViewItem *item); @@ -202,7 +203,7 @@ private: bool m_showNoInformation; bool m_showAppointments; bool m_firstTime; - QPtrList<KDGanttViewTaskLink> m_taskLinks; + TQPtrList<KDGanttViewTaskLink> m_taskLinks; Project *m_project; }; |