From f008adb5a77e094eaf6abf3fc0f36958e66896a5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 25 Jun 2011 05:28:35 +0000 Subject: TQt4 port koffice This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kspread/valuecalc.h | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'kspread/valuecalc.h') diff --git a/kspread/valuecalc.h b/kspread/valuecalc.h index e62bd2ed..2d78211b 100644 --- a/kspread/valuecalc.h +++ b/kspread/valuecalc.h @@ -22,8 +22,8 @@ #include -#include -#include +#include +#include #include "kspread_value.h" @@ -42,11 +42,11 @@ struct Condition Comp comp; int index; double value; - QString stringValue; + TQString stringValue; Type type; }; -typedef QValueList ConditionList; +typedef TQValueList ConditionList; typedef void (*arrayWalkFunc) (ValueCalc *, Value &result, Value val, Value param); @@ -199,14 +199,14 @@ class ValueCalc { arrayWalkFunc func, Value param); /** Walk the array in function-like style. This method is here to avoid duplication in function handlers. */ - void arrayWalk (QValueVector &range, Value &res, + void arrayWalk (TQValueVector &range, Value &res, arrayWalkFunc func, Value param); void twoArrayWalk (const Value &a1, const Value &a2, Value &res, arrayWalkFunc func); - void twoArrayWalk (QValueVector &a1, - QValueVector &a2, Value &res, arrayWalkFunc func); - arrayWalkFunc awFunc (const QString &name); - void registerAwFunc (const QString &name, arrayWalkFunc func); + void twoArrayWalk (TQValueVector &a1, + TQValueVector &a2, Value &res, arrayWalkFunc func); + arrayWalkFunc awFunc (const TQString &name); + void registerAwFunc (const TQString &name, arrayWalkFunc func); /** basic range functions */ // if full is true, A-version is used (means string/bool values included) @@ -229,18 +229,18 @@ class ValueCalc { bool full = true); /** range functions using value lists */ - Value sum (QValueVector range, bool full = true); - int count (QValueVector range, bool full = true); - Value avg (QValueVector range, bool full = true); - Value max (QValueVector range, bool full = true); - Value min (QValueVector range, bool full = true); - Value product (QValueVector range, Value init, + Value sum (TQValueVector range, bool full = true); + int count (TQValueVector range, bool full = true); + Value avg (TQValueVector range, bool full = true); + Value max (TQValueVector range, bool full = true); + Value min (TQValueVector range, bool full = true); + Value product (TQValueVector range, Value init, bool full = true); - Value stddev (QValueVector range, bool full = true); - Value stddev (QValueVector range, Value avg, + Value stddev (TQValueVector range, bool full = true); + Value stddev (TQValueVector range, Value avg, bool full = true); - Value stddevP (QValueVector range, bool full = true); - Value stddevP (QValueVector range, Value avg, + Value stddevP (TQValueVector range, bool full = true); + Value stddevP (TQValueVector range, Value avg, bool full = true); /** @@ -263,7 +263,7 @@ class ValueCalc { Doc *_doc; /** registered array-walk functions */ - std::map awFuncs; + std::map awFuncs; }; } //namespace KSpread -- cgit v1.2.1