summaryrefslogtreecommitdiffstats
path: root/kmymoney2/views/khomeview.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-05 06:00:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-05 06:00:29 +0000
commitfecb0e67b23e8b83ba7fc881bb57bc48c0852d62 (patch)
tree6b8614802f0d01b353bc9ba78aff2090846c198e /kmymoney2/views/khomeview.h
parentdadc34655c3ab961b0b0b94a10eaaba710f0b5e8 (diff)
downloadkmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.tar.gz
kmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.zip
TQt4 port kmymoney
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1239855 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmymoney2/views/khomeview.h')
-rw-r--r--kmymoney2/views/khomeview.h33
1 files changed, 17 insertions, 16 deletions
diff --git a/kmymoney2/views/khomeview.h b/kmymoney2/views/khomeview.h
index 213fd91..f580ed4 100644
--- a/kmymoney2/views/khomeview.h
+++ b/kmymoney2/views/khomeview.h
@@ -24,9 +24,9 @@
// ----------------------------------------------------------------------------
// QT Includes
-#include <qwidget.h>
-class QVBoxLayout;
-class QFrame;
+#include <tqwidget.h>
+class TQVBoxLayout;
+class TQFrame;
// ----------------------------------------------------------------------------
// KDE Includes
@@ -51,6 +51,7 @@ class QFrame;
class KHomeView : public KMyMoneyViewBase
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Definition of bitmap used as argument for showAccounts().
@@ -60,13 +61,13 @@ public:
Payment = 2 ///< show payment accounts
};
- KHomeView(QWidget *parent=0, const char *name=0);
+ KHomeView(TQWidget *tqparent=0, const char *name=0);
~KHomeView();
protected:
void showPayments(void);
void showPaymentEntry(const MyMoneySchedule&, int cnt = 1);
- void showAccounts(paymentTypeE type, const QString& hdr);
+ void showAccounts(paymentTypeE type, const TQString& hdr);
void showAccountEntry(const MyMoneyAccount&);
void showFavoriteReports(void);
void showForecast(void);
@@ -78,8 +79,8 @@ protected:
void showBudget(void);
void showCashFlowSummary(void);
- const QString link(const QString& view, const QString& query, const QString& title = QString()) const;
- const QString linkend(void) const;
+ const TQString link(const TQString& view, const TQString& query, const TQString& title = TQString()) const;
+ const TQString linkend(void) const;
void loadView(void);
public slots:
@@ -99,9 +100,9 @@ public slots:
void slotPrintView(void);
signals:
- void ledgerSelected(const QString& id, const QString& transaction);
- void scheduleSelected(const QString& id);
- void reportSelected(const QString& id);
+ void ledgerSelected(const TQString& id, const TQString& transaction);
+ void scheduleSelected(const TQString& id);
+ void reportSelected(const TQString& id);
private:
/// \internal d-pointer class.
@@ -112,7 +113,7 @@ private:
/**
* daily balances of an account
*/
- typedef QMap<QDate, MyMoneyMoney> dailyBalances;
+ typedef TQMap<TQDate, MyMoneyMoney> dailyBalances;
/**
* Print an account and its balance and limit
@@ -129,7 +130,7 @@ private:
* Print text in the color set for negative numbers, if @p amount is negative
* abd @p isNegative is true
*/
- QString showColoredAmount(const QString& amount, bool isNegative);
+ TQString showColoredAmount(const TQString& amount, bool isNegative);
/**
* Run the forecast
@@ -139,11 +140,11 @@ private:
/**
* Calculate the forecast balance after a payment has been made
*/
- MyMoneyMoney forecastPaymentBalance(const MyMoneyAccount& acc, const MyMoneyMoney& payment, QDate& paymentDate);
+ MyMoneyMoney forecastPaymentBalance(const MyMoneyAccount& acc, const MyMoneyMoney& payment, TQDate& paymentDate);
KHTMLPart* m_part;
- QVBoxLayout* m_qvboxlayoutPage;
- QString m_filename;
+ TQVBoxLayout* m_qvboxtqlayoutPage;
+ TQString m_filename;
bool m_showAllSchedules;
bool m_needReload;
MyMoneyForecast m_forecast;
@@ -151,7 +152,7 @@ private:
/**
* daily forecast balance of accounts
*/
- QMap<QString, dailyBalances> m_accountList;
+ TQMap<TQString, dailyBalances> m_accountList;
};