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/kptresourceview.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/kptresourceview.h')
-rw-r--r-- | kplato/kptresourceview.h | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/kplato/kptresourceview.h b/kplato/kptresourceview.h index 391653af..5fb3d98a 100644 --- a/kplato/kptresourceview.h +++ b/kplato/kptresourceview.h @@ -20,14 +20,14 @@ #ifndef KPTRESOURCEVIEW_H #define KPTRESOURCEVIEW_H -#include <qsplitter.h> -#include <qdatetime.h> -#include <qvaluelist.h> +#include <tqsplitter.h> +#include <tqdatetime.h> +#include <tqvaluelist.h> #include "kptcontext.h" -class QPoint; -class QListViewItem; +class TQPoint; +class TQListViewItem; class KPrinter; @@ -46,12 +46,13 @@ class Resource; class ResourceItemPrivate; - class ResourceView : public QSplitter + class ResourceView : public TQSplitter { Q_OBJECT + TQ_OBJECT public: - ResourceView(View *view, QWidget *parent); + ResourceView(View *view, TQWidget *tqparent); //~ResourceView(); @@ -62,7 +63,7 @@ class ResourceItemPrivate; Resource *currentResource(); - QValueList<int> listOffsets(int pageHeight) const; + TQValueList<int> listOffsets(int pageHeight) const; void print(KPrinter &printer); Node *currentNode() const { return m_currentNode; } @@ -70,7 +71,7 @@ class ResourceItemPrivate; virtual bool setContext(Context::Resourceview &context); virtual void getContext(Context::Resourceview &context) const; - virtual QSize sizeHint() const; + virtual TQSize tqsizeHint() const; public slots: void setShowAppointments(bool on) { m_showAppointments = on; } @@ -80,12 +81,12 @@ signals: protected slots: void resSelectionChanged(); - void resSelectionChanged(QListViewItem *item); - void slotItemDoubleClicked(QListViewItem*); - void popupMenuRequested(QListViewItem * item, const QPoint & pos, int); + void resSelectionChanged(TQListViewItem *item); + void slotItemDoubleClicked(TQListViewItem*); + void popupMenuRequested(TQListViewItem * item, const TQPoint & pos, int); private: - void drawResources(const Project &proj, QListViewItem *parent, ResourceGroup *group); + void drawResources(const Project &proj, TQListViewItem *tqparent, ResourceGroup *group); private: View *m_mainview; @@ -95,8 +96,8 @@ private: ResListView *resList; ResourceAppointmentsView *m_appview; Node *m_currentNode; - QDate m_start; - QDate m_end; + TQDate m_start; + TQDate m_end; bool m_showAppointments; |