summaryrefslogtreecommitdiffstats
path: root/kmymoney2/views/kreportsview.h
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/views/kreportsview.h')
-rwxr-xr-xkmymoney2/views/kreportsview.h69
1 files changed, 35 insertions, 34 deletions
diff --git a/kmymoney2/views/kreportsview.h b/kmymoney2/views/kreportsview.h
index eaa8c7c..218155a 100755
--- a/kmymoney2/views/kreportsview.h
+++ b/kmymoney2/views/kreportsview.h
@@ -33,11 +33,11 @@
// ----------------------------------------------------------------------------
// QT Includes
-#include <qvaluevector.h>
-#include <qwidget.h>
+#include <tqvaluevector.h>
+#include <tqwidget.h>
-class QVBoxLayout;
-class QListViewItem;
+class TQVBoxLayout;
+class TQListViewItem;
// ----------------------------------------------------------------------------
// KDE Includes
@@ -77,6 +77,7 @@ namespace KReportView {
class KReportsView : public KMyMoneyViewBase
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
@@ -87,13 +88,13 @@ public:
* @author Ace Jones
*/
- class KReportTab: public QWidget
+ class KReportTab: public TQWidget
{
private:
KHTMLPart* m_part;
reports::KReportChartView* m_chartView;
kMyMoneyReportControlDecl* m_control;
- QVBoxLayout* m_layout;
+ TQVBoxLayout* m_layout;
MyMoneyReport m_report;
bool m_deleteMe;
bool m_showingChart;
@@ -101,15 +102,15 @@ public:
reports::ReportTable* m_table;
public:
- KReportTab(KTabWidget* parent, const MyMoneyReport& report );
+ KReportTab(KTabWidget* tqparent, const MyMoneyReport& report );
~KReportTab();
const MyMoneyReport& report(void) const { return m_report; }
void print(void);
void toggleChart(void);
void copyToClipboard(void);
- void saveAs( const QString& filename, bool includeCSS = false );
+ void saveAs( const TQString& filename, bool includeCSS = false );
void updateReport(void);
- QString createTable(const QString& links=QString());
+ TQString createTable(const TQString& links=TQString());
const kMyMoneyReportControlDecl* control(void) const { return m_control; }
bool isReadyToDelete(void) const { return m_deleteMe; }
void setReadyToDelete(bool f) { m_deleteMe = f; }
@@ -129,21 +130,21 @@ public:
class KReportListItem: public KListViewItem
{
private:
- QString m_id;
+ TQString m_id;
MyMoneyReport m_report;
public:
- KReportListItem( KListView* parent, const MyMoneyReport& report ):
- KListViewItem( parent, report.name(), report.comment() ),
+ KReportListItem( KListView* tqparent, const MyMoneyReport& report ):
+ KListViewItem( tqparent, report.name(), report.comment() ),
m_id( report.id() ),
m_report( report )
{}
- KReportListItem( KListViewItem* parent, const MyMoneyReport& report ):
- KListViewItem( parent, report.name(), report.comment() ),
+ KReportListItem( KListViewItem* tqparent, const MyMoneyReport& report ):
+ KListViewItem( tqparent, report.name(), report.comment() ),
m_id( report.id() ),
m_report( report )
{}
- //const QString& id(void) const { return m_id; }
+ //const TQString& id(void) const { return m_id; }
const MyMoneyReport& report(void) const { return m_report; }
};
@@ -151,11 +152,11 @@ public:
{
private:
int m_nr;
- QString m_name;
+ TQString m_name;
public:
- KReportGroupListItem( KListView* parent,const int nr,const QString name);
- virtual QString key ( int column, bool ascending ) const;
+ KReportGroupListItem( KListView* tqparent,const int nr,const TQString name);
+ virtual TQString key ( int column, bool ascending ) const;
void setNr(const int nr);
};
@@ -167,16 +168,16 @@ public:
*
* @author Ace Jones
*/
- class ReportGroup: public QValueList<MyMoneyReport>
+ class ReportGroup: public TQValueList<MyMoneyReport>
{
private:
- QString m_name; ///< the title of the group in non-translated form
- QString m_title; ///< the title of the group in i18n-ed form
+ TQString m_name; ///< the title of the group in non-translated form
+ TQString m_title; ///< the title of the group in i18n-ed form
public:
ReportGroup( void ) {}
- ReportGroup( const QString& name, const QString& title ): m_name( name ), m_title(title) {}
- const QString& name( void ) const { return m_name; }
- const QString& title(void) const { return m_title; }
+ ReportGroup( const TQString& name, const TQString& title ): m_name( name ), m_title(title) {}
+ const TQString& name( void ) const { return m_name; }
+ const TQString& title(void) const { return m_title; }
};
private:
@@ -186,22 +187,22 @@ private:
Private* const d;
KTabWidget* m_reportTabWidget;
KListView* m_reportListView;
- QWidget* m_listTab;
- QVBoxLayout* m_listTabLayout;
+ TQWidget* m_listTab;
+ TQVBoxLayout* m_listTabLayout;
bool m_needReload;
public:
/**
* Standard constructor.
*
- * @param parent The QWidget this is used in.
+ * @param tqparent The TQWidget this is used in.
* @param name The QT name.
*
* @return An object of type KReportsView
*
* @see ~KReportsView
*/
- KReportsView(QWidget *parent=0, const char *name=0);
+ KReportsView(TQWidget *tqparent=0, const char *name=0);
/**
* Standard destructor.
@@ -222,7 +223,7 @@ public:
protected:
void addReportTab(const MyMoneyReport&);
void loadView(void);
- static void defaultReports(QValueList<ReportGroup>&);
+ static void defaultReports(TQValueList<ReportGroup>&);
public slots:
void slotOpenURL(const KURL &url, const KParts::URLArgs& args);
@@ -234,21 +235,21 @@ public slots:
void slotConfigure(void);
void slotDuplicate(void);
void slotToggleChart(void);
- void slotOpenReport(QListViewItem*);
- void slotOpenReport(const QString&);
+ void slotOpenReport(TQListViewItem*);
+ void slotOpenReport(const TQString&);
void slotOpenReport(const MyMoneyReport&);
void slotCloseCurrent(void);
- void slotClose(QWidget*);
+ void slotClose(TQWidget*);
void slotCloseAll(void);
void slotDelete(void);
- void slotListContextMenu(KListView*,QListViewItem*,const QPoint &);
+ void slotListContextMenu(KListView*,TQListViewItem*,const TQPoint &);
void slotOpenFromList(void);
void slotConfigureFromList(void);
void slotNewFromList(void);
void slotDeleteFromList(void);
protected slots:
- void slotSaveFilterChanged(const QString&);
+ void slotSaveFilterChanged(const TQString&);
signals:
/**