From f008adb5a77e094eaf6abf3fc0f36958e66896a5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 25 Jun 2011 05:28:35 +0000 Subject: 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 --- kplato/kptresourceview.h | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'kplato/kptresourceview.h') 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 -#include -#include +#include +#include +#include #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 listOffsets(int pageHeight) const; + TQValueList 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; -- cgit v1.2.1