summaryrefslogtreecommitdiffstats
path: root/kmymoney2/reports/pivotgrid.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/reports/pivotgrid.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/reports/pivotgrid.h')
-rw-r--r--kmymoney2/reports/pivotgrid.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/kmymoney2/reports/pivotgrid.h b/kmymoney2/reports/pivotgrid.h
index ca7f5ab..c067c27 100644
--- a/kmymoney2/reports/pivotgrid.h
+++ b/kmymoney2/reports/pivotgrid.h
@@ -22,8 +22,8 @@
// ----------------------------------------------------------------------------
// QT Includes
-#include <qmap.h>
-#include <qvaluelist.h>
+#include <tqmap.h>
+#include <tqvaluelist.h>
// ----------------------------------------------------------------------------
// KDE Includes
@@ -45,7 +45,7 @@ namespace reports {
*
* A 'Row Pair' is two rows of money values. Each column is the SAME month. One row is the
* 'actual' values for the period, the other row is the 'budgetted' values for the same
- * period. For ease of implementation, a Row Pair is implemented as a Row which contains
+ * period. For ease of implementation, a Row Pair is implemented as a Row which tqcontains
* another Row. The inherited Row is the 'actual', the contained row is the 'Budget'.
*
* An 'Inner Group' contains a rows for each subordinate account within a single top-level
@@ -69,8 +69,8 @@ namespace reports {
static PivotCell stockSplit(const MyMoneyMoney& factor);
PivotCell operator += (const PivotCell& right);
PivotCell operator += (const MyMoneyMoney& value);
- const QString formatMoney(int fraction, bool showThousandSeparator = true) const;
- const QString formatMoney(const QString& currency, const int prec, bool showThousandSeparator = true) const;
+ const TQString formatMoney(int fraction, bool showThousandSeparator = true) const;
+ const TQString formatMoney(const TQString& currency, const int prec, bool showThousandSeparator = true) const;
MyMoneyMoney calculateRunningSum(const MyMoneyMoney& runningSum);
MyMoneyMoney cellBalance(const MyMoneyMoney& _balance);
bool isUsed(void) const { return m_cellUsed; }
@@ -79,7 +79,7 @@ namespace reports {
MyMoneyMoney m_postSplit;
bool m_cellUsed;
};
- class PivotGridRow: public QValueList<PivotCell>
+ class PivotGridRow: public TQValueList<PivotCell>
{
public:
@@ -91,13 +91,13 @@ namespace reports {
MyMoneyMoney m_total;
};
- class PivotGridRowSet: public QMap<ERowType, PivotGridRow>
+ class PivotGridRowSet: public TQMap<ERowType, PivotGridRow>
{
public:
PivotGridRowSet( unsigned _numcolumns = 0 );
};
- class PivotInnerGroup: public QMap<ReportAccount,PivotGridRowSet>
+ class PivotInnerGroup: public TQMap<ReportAccount,PivotGridRowSet>
{
public:
PivotInnerGroup( unsigned _numcolumns = 0 ): m_total(_numcolumns) {}
@@ -105,7 +105,7 @@ namespace reports {
PivotGridRowSet m_total;
};
- class PivotOuterGroup: public QMap<QString,PivotInnerGroup>
+ class PivotOuterGroup: public TQMap<TQString,PivotInnerGroup>
{
public:
PivotOuterGroup( unsigned _numcolumns = 0, unsigned _sort=m_kDefaultSortOrder, bool _inverted=false): m_total(_numcolumns), m_inverted(_inverted), m_sortOrder(_sort) {}
@@ -127,7 +127,7 @@ namespace reports {
// The localized name of the group for display in the report. Outergoups need this
// independently, because they will lose their association with the TGrid when the
// report is rendered.
- QString m_displayName;
+ TQString m_displayName;
// lower numbers sort toward the top of the report. defaults to 100, which is a nice
// middle-of-the-road value
@@ -136,10 +136,10 @@ namespace reports {
// default sort order
static const unsigned m_kDefaultSortOrder;
};
- class PivotGrid: public QMap<QString,PivotOuterGroup>
+ class PivotGrid: public TQMap<TQString,PivotOuterGroup>
{
public:
- PivotGridRowSet rowSet (QString id);
+ PivotGridRowSet rowSet (TQString id);
PivotGridRowSet m_total;
};