summaryrefslogtreecommitdiffstats
path: root/kspread/valueconverter.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kspread/valueconverter.cc')
-rw-r--r--kspread/valueconverter.cc28
1 files changed, 14 insertions, 14 deletions
diff --git a/kspread/valueconverter.cc b/kspread/valueconverter.cc
index ec60ee05..1aeb25db 100644
--- a/kspread/valueconverter.cc
+++ b/kspread/valueconverter.cc
@@ -157,13 +157,13 @@ Value ValueConverter::asString (const Value &value) const
// as we sometimes want to generate the string differently ...
Value val;
- QString s;
+ TQString s;
Value::Format fmt;
- QChar decimal_point;
+ TQChar decimal_point;
int pos;
switch (value.type()) {
case Value::Empty:
- val = QString::null;
+ val = TQString();
break;
case Value::Boolean:
val.setValue (value.asBoolean() ? parser->locale()->translate ("True") :
@@ -173,7 +173,7 @@ Value ValueConverter::asString (const Value &value) const
{
fmt = value.format();
if (fmt == Value::fmt_Percent)
- val = QString::number (value.asInteger() * 100) + " %";
+ val = TQString::number (value.asInteger() * 100) + " %";
else if (fmt == Value::fmt_DateTime)
val = parser->locale()->formatDateTime (value.asDateTime());
else if (fmt == Value::fmt_Date)
@@ -181,7 +181,7 @@ Value ValueConverter::asString (const Value &value) const
else if (fmt == Value::fmt_Time)
val = parser->locale()->formatTime (value.asTime());
else
- val = QString::number (value.asInteger());
+ val = TQString::number (value.asInteger());
}
break;
case Value::Float:
@@ -195,10 +195,10 @@ Value ValueConverter::asString (const Value &value) const
else
{
//convert the number, change decimal point from English to local
- s = QString::number (value.asFloat(), 'g', 10);
+ s = TQString::number (value.asFloat(), 'g', 10);
decimal_point = parser->locale()->decimalSymbol()[0];
- if (decimal_point && ((pos = s.find ('.')) != -1))
- s = s.replace (pos, 1, decimal_point);
+ if (decimal_point && ((pos = s.tqfind ('.')) != -1))
+ s = s.tqreplace (pos, 1, decimal_point);
if (fmt == Value::fmt_Percent)
s += " %";
val.setValue (s);
@@ -228,11 +228,11 @@ Value ValueConverter::asDateTime (const Value &value) const
switch (value.type()) {
case Value::Empty:
- val.setValue (QDateTime::currentDateTime());
+ val.setValue (TQDateTime::tqcurrentDateTime());
break;
case Value::Boolean:
//ignore the bool value... any better idea? ;)
- val.setValue (QDateTime::currentDateTime());
+ val.setValue (TQDateTime::tqcurrentDateTime());
break;
case Value::Integer:
val.setValue (value.asFloat());
@@ -269,11 +269,11 @@ Value ValueConverter::asDate (const Value &value) const
switch (value.type()) {
case Value::Empty:
- val.setValue (QDate::currentDate());
+ val.setValue (TQDate::tqcurrentDate());
break;
case Value::Boolean:
//ignore the bool value... any better idea? ;)
- val.setValue (QDate::currentDate());
+ val.setValue (TQDate::tqcurrentDate());
break;
case Value::Integer:
val.setValue (value.asFloat());
@@ -308,11 +308,11 @@ Value ValueConverter::asTime (const Value &value) const
switch (value.type()) {
case Value::Empty:
- val.setValue (QTime::currentTime());
+ val.setValue (TQTime::currentTime());
break;
case Value::Boolean:
//ignore the bool value... any better idea? ;)
- val.setValue (QTime::currentTime());
+ val.setValue (TQTime::currentTime());
break;
case Value::Integer:
val.setValue (value.asInteger());