summaryrefslogtreecommitdiffstats
path: root/kplato/kptdurationwidget.ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'kplato/kptdurationwidget.ui.h')
-rw-r--r--kplato/kptdurationwidget.ui.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/kplato/kptdurationwidget.ui.h b/kplato/kptdurationwidget.ui.h
index 4380c92e..837114d8 100644
--- a/kplato/kptdurationwidget.ui.h
+++ b/kplato/kptdurationwidget.ui.h
@@ -81,7 +81,7 @@ do \
void DurationWidget::init()
{
// Use the user's decimal point!
- m_decimalPoint = KGlobal::locale()->decimalSymbol();
+ m_decimalPoint = TDEGlobal::locale()->decimalSymbol();
//NOTE:
// This isn't as flexible/general as Shaheed once made it.
@@ -305,7 +305,7 @@ void DurationWidget::handleLostFocus(
// Get the text and start processing...
TQString newValue(current->text());
- double v = KGlobal::locale()->readNumber(newValue);
+ double v = TDEGlobal::locale()->readNumber(newValue);
unsigned currentValue = 0;
TQString tmp;
//kdDebug()<<k_funcinfo<<field<<": value="<<v<<" v="<<v<<endl;
@@ -319,7 +319,7 @@ void DurationWidget::handleLostFocus(
// Get remainder.
v = v - (tmp.toUInt() * leftScale);
- newValue = KGlobal::locale()->formatNumber(v);
+ newValue = TDEGlobal::locale()->formatNumber(v);
}
int point = newValue.find(m_decimalPoint);
if (point != -1)
@@ -332,11 +332,11 @@ void DurationWidget::handleLostFocus(
//kdDebug()<<k_funcinfo<<field<<": value="<<newValue<<" rightScale="<<rightScale<<" frac="<<frac<<" ("<<newValue.mid(point)<<")"<<endl;
// Propagate fraction
v = rightScale * (frac*power(10.0, -p));
- frac = fraction(KGlobal::locale()->formatNumber(v, 19), 0);
+ frac = fraction(TDEGlobal::locale()->formatNumber(v, 19), 0);
//kdDebug()<<k_funcinfo<<field<<": v="<<v<<" ("<<(unsigned)v<<") rest="<<frac<<endl;
if (frac > 0.0)
{
- tmp = KGlobal::locale()->formatNumber(v, 19);
+ tmp = TDEGlobal::locale()->formatNumber(v, 19);
right->setText(tmp);
handleLostFocus(field + 1);
} else {
@@ -449,7 +449,7 @@ double DurationWidget::fraction(TQString number, int *exp) {
} else {
v = number.mid(point);
}
- return KGlobal::locale()->readNumber(v);
+ return TDEGlobal::locale()->readNumber(v);
}
} //KPlato namespace