diff options
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 2be93196a..3fee04f84 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); }; |
