diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-05 06:00:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-05 06:00:29 +0000 |
commit | fecb0e67b23e8b83ba7fc881bb57bc48c0852d62 (patch) | |
tree | 6b8614802f0d01b353bc9ba78aff2090846c198e /libkdchart/KDChartSeriesCollection.cpp | |
parent | dadc34655c3ab961b0b0b94a10eaaba710f0b5e8 (diff) | |
download | kmymoney-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 'libkdchart/KDChartSeriesCollection.cpp')
-rw-r--r-- | libkdchart/KDChartSeriesCollection.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/libkdchart/KDChartSeriesCollection.cpp b/libkdchart/KDChartSeriesCollection.cpp index 185625e..84bd004 100644 --- a/libkdchart/KDChartSeriesCollection.cpp +++ b/libkdchart/KDChartSeriesCollection.cpp @@ -76,7 +76,7 @@ uint KDChartSeriesCollection::usedCols() const } // Don't really know how to handle these yet, I have no need yet. -// It appears to be only used to load QTables. +// It appears to be only used to load TQTables. // ASSERT if used. void KDChartSeriesCollection::setUsedRows( uint ) { @@ -132,10 +132,10 @@ double KDChartSeriesCollection::maxValue( int coordinate ) const bool first_max = true; // find the first max -#if COMPAT_QT_VERSION >= 0x030000 - QValueVector<KDChartBaseSeries *>::const_iterator i; +#if COMPAT_TQT_VERSION >= 0x030000 + TQValueVector<KDChartBaseSeries *>::const_iterator i; #else - QArray<KDChartBaseSeries *>::ConstIterator i; + TQArray<KDChartBaseSeries *>::ConstIterator i; #endif for ( i = (*this).begin(); i != (*this).end(); i ++ ) { @@ -163,10 +163,10 @@ double KDChartSeriesCollection::minValue( int coordinate ) const double result = 0; // if no valid min/max, then this is the default // find the first min -#if COMPAT_QT_VERSION >= 0x030000 - QValueVector<KDChartBaseSeries *>::const_iterator i; +#if COMPAT_TQT_VERSION >= 0x030000 + TQValueVector<KDChartBaseSeries *>::const_iterator i; #else - QArray<KDChartBaseSeries *>::ConstIterator i; + TQArray<KDChartBaseSeries *>::ConstIterator i; #endif for ( i = (*this).begin(); !ok && i != (*this).end(); i ++ ) result = (*i)->minValue(coordinate, ok); @@ -176,7 +176,7 @@ double KDChartSeriesCollection::minValue( int coordinate ) const { double temp = (*i)->minValue(coordinate, ok); if (ok) - result = QMIN( result, temp ); + result = TQMIN( result, temp ); } return result; @@ -186,10 +186,10 @@ double KDChartSeriesCollection::minValue( int coordinate ) const unsigned int KDChartSeriesCollection::indexOf( KDChartBaseSeries *series ) { unsigned int index = 0; -#if COMPAT_QT_VERSION >= 0x030000 - QValueVector<KDChartBaseSeries *>::const_iterator i; +#if COMPAT_TQT_VERSION >= 0x030000 + TQValueVector<KDChartBaseSeries *>::const_iterator i; #else - QArray<KDChartBaseSeries *>::ConstIterator i; + TQArray<KDChartBaseSeries *>::ConstIterator i; #endif for ( i = (*this).begin(); i != (*this).end(); i ++, index ++ ) if ( *i == series ) @@ -202,7 +202,7 @@ unsigned int KDChartSeriesCollection::indexOf( KDChartBaseSeries *series ) } -void KDChartSeriesCollection::setLegendText( KDChartBaseSeries *series, QString text ) +void KDChartSeriesCollection::setLegendText( KDChartBaseSeries *series, TQString text ) { _params->setLegendText( indexOf( series ), text ); } @@ -219,7 +219,7 @@ void KDChartSeriesCollection::setYaxis( KDChartBaseSeries *series, -QString KDChartSeriesCollection::legendText( KDChartBaseSeries *series ) +TQString KDChartSeriesCollection::legendText( KDChartBaseSeries *series ) { return _params->legendText( indexOf(series) ); } |