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/kptreportview.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/kptreportview.h')
-rw-r--r-- | kplato/kptreportview.h | 61 |
1 files changed, 31 insertions, 30 deletions
diff --git a/kplato/kptreportview.h b/kplato/kptreportview.h index e0e8b8c2..8dd023e2 100644 --- a/kplato/kptreportview.h +++ b/kplato/kptreportview.h @@ -25,8 +25,8 @@ #include "kpttask.h" #include "kptresource.h" #include "kptduration.h" -#include <qsplitter.h> -#include <qstring.h> +#include <tqsplitter.h> +#include <tqstring.h> #include <klistview.h> @@ -38,11 +38,11 @@ namespace Kugar class MReportViewer; } // Kugar namespace -//class QString; -class QStringList; -class QDomDocument; -class QDomNode; -class QIODevice; +//class TQString; +class TQStringList; +class TQDomDocument; +class TQDomNode; +class TQIODevice; namespace KPlato { @@ -52,19 +52,20 @@ class Node; class KugarReportViewer; class ReportTagsPrivate; -class ReportView : public QSplitter +class ReportView : public TQSplitter { Q_OBJECT + TQ_OBJECT public: - ReportView(View *view, QWidget *parent); + ReportView(View *view, TQWidget *tqparent); ~ReportView(); void zoom(double /*zoom*/) {} - void draw(const QString &report); + void draw(const TQString &report); View *mainView() const { return m_mainview; } void setup(KPrinter &printer); @@ -72,24 +73,24 @@ class ReportView : public QSplitter void setReportData(); - void getTemplateFile(const QString &tpl); - void openTemplateFile(const QString &file); - void loadTemplate(QIODevice &dev); - void loadTemplate(QDomDocument &doc); - void handleHeader(QDomNode &node); - void handleDetail(QDomElement &elem); - void handleKPlato(QDomElement &elem); - void replaceTags(QDomNode &node); + void getTemplateFile(const TQString &tpl); + void openTemplateFile(const TQString &file); + void loadTemplate(TQIODevice &dev); + void loadTemplate(TQDomDocument &doc); + void handleHeader(TQDomNode &node); + void handleDetail(TQDomElement &elem); + void handleKPlato(TQDomElement &elem); + void replaceTags(TQDomNode &node); - QString setReportDetail(); - QString setTaskChildren(Node *node); - QString setTaskDetail(Node *node); - QStringList getProperties(QDomElement &elem); + TQString setReportDetail(); + TQString setTaskChildren(Node *node); + TQString setTaskDetail(Node *node); + TQStringList getProperties(TQDomElement &elem); - QString setResourceDetail(Resource *res); - QString setResourceGroupDetail(ResourceGroup *group); + TQString setResourceDetail(Resource *res); + TQString setResourceGroupDetail(ResourceGroup *group); - QString setDetail(const QString &source, QStringList &properties, QString &level); + TQString setDetail(const TQString &source, TQStringList &properties, TQString &level); virtual bool setContext(Context::Reportview &context); virtual void getContext(Context::Reportview &context) const; @@ -109,17 +110,17 @@ public slots: void slotLastPage(); protected slots: - void slotReportListClicked(QListViewItem* item); - void slotReportListSelectionChanged(QListViewItem* item); + void slotReportListClicked(TQListViewItem* item); + void slotReportListSelectionChanged(TQListViewItem* item); private: class ReportItem : public KListViewItem { public: - ReportItem(KListView *p, QString name, QString _url) + ReportItem(KListView *p, TQString name, TQString _url) : KListViewItem(p, name), url(_url) {} - QString url; + TQString url; }; void initReportList(); @@ -129,7 +130,7 @@ private: KugarReportViewer *m_reportview; int m_defaultFontSize; - QDomDocument templateDoc; + TQDomDocument templateDoc; ReportTagsPrivate *m_reportTags; }; |