summaryrefslogtreecommitdiffstats
path: root/libkdchart/KDChartSeriesCollection.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-06-03 13:33:59 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-06-05 11:24:56 +0900
commit1a2f76163a8ce08c850f1f632d0a295be57d6807 (patch)
tree206561d838f27d560e568638f52700620aa12209 /libkdchart/KDChartSeriesCollection.cpp
parentd09e55dfbb793fc01c18d82eacbc59d6056a9390 (diff)
downloadkmymoney-1a2f76163a8ce08c850f1f632d0a295be57d6807.tar.gz
kmymoney-1a2f76163a8ce08c850f1f632d0a295be57d6807.zip
Drop Qt2 obsolete classes
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit a3a44b5daea0e8674401be3b8b9f15bccd64520d)
Diffstat (limited to 'libkdchart/KDChartSeriesCollection.cpp')
-rw-r--r--libkdchart/KDChartSeriesCollection.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/libkdchart/KDChartSeriesCollection.cpp b/libkdchart/KDChartSeriesCollection.cpp
index 212504e..333917b 100644
--- a/libkdchart/KDChartSeriesCollection.cpp
+++ b/libkdchart/KDChartSeriesCollection.cpp
@@ -135,11 +135,7 @@ double KDChartSeriesCollection::maxValue( int coordinate ) const
bool first_max = true;
// find the first max
-#if COMPAT_TQT_VERSION >= 0x030000
TQValueVector<KDChartBaseSeries *>::const_iterator i;
-#else
- TQArray<KDChartBaseSeries *>::ConstIterator i;
-#endif
for ( i = (*this).begin(); i != (*this).end(); i ++ )
{
double temp = (*i)->maxValue(coordinate, ok);
@@ -166,11 +162,7 @@ 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_TQT_VERSION >= 0x030000
TQValueVector<KDChartBaseSeries *>::const_iterator i;
-#else
- TQArray<KDChartBaseSeries *>::ConstIterator i;
-#endif
for ( i = (*this).begin(); !ok && i != (*this).end(); i ++ )
result = (*i)->minValue(coordinate, ok);
@@ -189,11 +181,7 @@ double KDChartSeriesCollection::minValue( int coordinate ) const
unsigned int KDChartSeriesCollection::indexOf( KDChartBaseSeries *series )
{
unsigned int index = 0;
-#if COMPAT_TQT_VERSION >= 0x030000
TQValueVector<KDChartBaseSeries *>::const_iterator i;
-#else
- TQArray<KDChartBaseSeries *>::ConstIterator i;
-#endif
for ( i = (*this).begin(); i != (*this).end(); i ++, index ++ )
if ( *i == series )
break;