summaryrefslogtreecommitdiffstats
path: root/libkdchart/KDChartParamsWrapper.cpp
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 /libkdchart/KDChartParamsWrapper.cpp
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 'libkdchart/KDChartParamsWrapper.cpp')
-rw-r--r--libkdchart/KDChartParamsWrapper.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/libkdchart/KDChartParamsWrapper.cpp b/libkdchart/KDChartParamsWrapper.cpp
index 49e5166..00cdb54 100644
--- a/libkdchart/KDChartParamsWrapper.cpp
+++ b/libkdchart/KDChartParamsWrapper.cpp
@@ -1,7 +1,7 @@
#include "KDChartParamsWrapper.h"
#include <KDChartParams.h>
-KDChartParamsWrapper::KDChartParamsWrapper( KDChartParams* data ) :QObject(0), _data(data)
+KDChartParamsWrapper::KDChartParamsWrapper( KDChartParams* data ) :TQObject(0), _data(data)
{
}
@@ -11,59 +11,59 @@ const KDChartAxisParams* KDChartParamsWrapper::axisParams( uint n ) const
return &a;
}
-void KDChartParamsWrapper::setExplodeValues( QVariant explodeList )
+void KDChartParamsWrapper::setExplodeValues( TQVariant explodeList )
{
- if ( !explodeList.type() == QVariant::List )
+ if ( !explodeList.type() == TQVariant::List )
return;
- QValueList<QVariant> list = explodeList.toList();
+ TQValueList<TQVariant> list = explodeList.toList();
- QValueList<int> res;
- for( QValueList<QVariant>::Iterator it = list.begin(); it != list.end(); ++it ) {
+ TQValueList<int> res;
+ for( TQValueList<TQVariant>::Iterator it = list.begin(); it != list.end(); ++it ) {
int x = (*it).toInt();
res.append(x);
}
_data->setExplodeValues( res );
}
-void KDChartParamsWrapper::setExplodeFactors( QVariant factors )
+void KDChartParamsWrapper::setExplodeFactors( TQVariant factors )
{
- if ( !factors.type() == QVariant::List )
+ if ( !factors.type() == TQVariant::List )
return;
- QValueList<QVariant> list = factors.toList();
+ TQValueList<TQVariant> list = factors.toList();
KDChartParams::ExplodeFactorsMap res;
int i = 0;
- for( QValueList<QVariant>::Iterator it = list.begin(); it != list.end(); ++it, ++i ) {
+ for( TQValueList<TQVariant>::Iterator it = list.begin(); it != list.end(); ++it, ++i ) {
res[i] = (*it).toDouble();
}
_data->setExplodeFactors( res );
}
-void KDChartParamsWrapper::setAxisLabelStringParams( uint n, QVariant axisLabelStringList, QVariant axisShortLabelStringList,
- const QString& valueStart, const QString& valueEnd )
+void KDChartParamsWrapper::setAxisLabelStringParams( uint n, TQVariant axisLabelStringList, TQVariant axisShortLabelStringList,
+ const TQString& valueStart, const TQString& valueEnd )
{
- QStringList l1 = axisLabelStringList.toStringList();
- QStringList l2 = axisShortLabelStringList.toStringList();
+ TQStringList l1 = axisLabelStringList.toStringList();
+ TQStringList l2 = axisShortLabelStringList.toStringList();
_data->setAxisLabelStringParams( n, &l1, &l2, valueStart, valueEnd );
}
void KDChartParamsWrapper::setAxisLabelTextParams( uint n,
bool axisSteadyValueCalc,
- QVariant axisValueStart,
- QVariant axisValueEnd,
+ TQVariant axisValueStart,
+ TQVariant axisValueEnd,
double axisValueDelta,
int axisDigitsBehindComma,
int axisMaxEmptyInnerSpan,
int takeLabelsFromDataRow,
int labelTextsDataRow,
- const QVariant& axisLabelStringList,
- const QVariant& axisShortLabelsStringList,
+ const TQVariant& axisLabelStringList,
+ const TQVariant& axisShortLabelsStringList,
int axisValueLeaveOut,
int axisValueDeltaScale ) {
- QStringList l1 = axisLabelStringList.toStringList();
- QStringList l2 = axisShortLabelsStringList.toStringList();
+ TQStringList l1 = axisLabelStringList.toStringList();
+ TQStringList l2 = axisShortLabelsStringList.toStringList();
_data->setAxisLabelTextParams( n, axisSteadyValueCalc, axisValueStart, axisValueEnd, axisValueDelta, axisDigitsBehindComma, axisMaxEmptyInnerSpan,
(KDChartAxisParams::LabelsFromDataRow) takeLabelsFromDataRow, labelTextsDataRow, &l1, &l2,