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/valueformatter.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'kspread/valueformatter.h') diff --git a/kspread/valueformatter.h b/kspread/valueformatter.h index 2be93196..3fee04f8 100644 --- a/kspread/valueformatter.h +++ b/kspread/valueformatter.h @@ -22,7 +22,7 @@ #include "kspread_format.h" -#include +#include namespace KSpread { @@ -41,21 +41,21 @@ class ValueFormatter { ValueFormatter (ValueConverter *converter); /** create a text representation of data in this cell */ - QString formatText (Cell *cell, FormatType fmtType); + TQString formatText (Cell *cell, FormatType fmtType); /** create a text representation of data in this Value */ - QString formatText (const Value &value, + TQString formatText (const Value &value, FormatType fmtType, int precision = -1, Format::FloatFormat floatFormat = Format::OnlyNegSigned, - const QString &prefix = QString::null, - const QString &postfix = QString::null, - const QString ¤cySymbol = QString::null); + const TQString &prefix = TQString(), + const TQString &postfix = TQString(), + const TQString ¤cySymbol = TQString()); /** create a date format */ - QString dateFormat (const QDate &_date, FormatType fmtType); + TQString dateFormat (const TQDate &_date, FormatType fmtType); /** create a time format */ - QString timeFormat (const QDateTime &_time, FormatType fmtType); + TQString timeFormat (const TQDateTime &_time, FormatType fmtType); protected: @@ -67,17 +67,17 @@ class ValueFormatter { FormatType fmtType); /** create a number format */ - QString createNumberFormat (double value, int precision, FormatType fmt, - bool alwaysSigned, const QString& currencySymbol); + TQString createNumberFormat (double value, int precision, FormatType fmt, + bool alwaysSigned, const TQString& currencySymbol); /** create a fraction format */ - QString fractionFormat (double value, FormatType fmtType); + TQString fractionFormat (double value, FormatType fmtType); - QString errorFormat (Cell *cell); + TQString errorFormat (Cell *cell); /** Remove trailing zeros and the decimal point if necessary unless the number has no decimal point */ - void removeTrailingZeros (QString &str, QChar decimal_point); + void removeTrailingZeros (TQString &str, TQChar decimal_point); }; -- cgit v1.2.1