diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kspread/valueformatter.h | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
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
Diffstat (limited to 'kspread/valueformatter.h')
-rw-r--r-- | kspread/valueformatter.h | 26 |
1 files changed, 13 insertions, 13 deletions
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 <qdatetime.h> +#include <tqdatetime.h> 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); }; |