summaryrefslogtreecommitdiffstats
path: root/plugins/infowidget
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 08:05:37 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 08:05:37 -0600
commit95fa1b2e1f05fa546f5846267044032bcdb92493 (patch)
tree220464c1b4b2b3302c78e26a4c71652675362e94 /plugins/infowidget
parent7b0ae78a46b9be7342c9366e99c8956a61395733 (diff)
downloadktorrent-95fa1b2e1f05fa546f5846267044032bcdb92493.tar.gz
ktorrent-95fa1b2e1f05fa546f5846267044032bcdb92493.zip
Rename KLocale to enhance compatibility with KDE4
Diffstat (limited to 'plugins/infowidget')
-rw-r--r--plugins/infowidget/fileview.cpp2
-rw-r--r--plugins/infowidget/iwfiletreeitem.cpp2
-rw-r--r--plugins/infowidget/localefloatvalidator.h2
-rw-r--r--plugins/infowidget/peerview.cpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/plugins/infowidget/fileview.cpp b/plugins/infowidget/fileview.cpp
index 22a79ce..25d910b 100644
--- a/plugins/infowidget/fileview.cpp
+++ b/plugins/infowidget/fileview.cpp
@@ -185,7 +185,7 @@ namespace kt
percent = 0.0;
else if (percent > 100.0)
percent = 100.0;
- KLocale* loc = TDEGlobal::locale();
+ TDELocale* loc = TDEGlobal::locale();
it.current()->setText(4,i18n("%1 %").arg(loc->formatNumber(percent,2)));
}
}
diff --git a/plugins/infowidget/iwfiletreeitem.cpp b/plugins/infowidget/iwfiletreeitem.cpp
index af976ca..d4837dd 100644
--- a/plugins/infowidget/iwfiletreeitem.cpp
+++ b/plugins/infowidget/iwfiletreeitem.cpp
@@ -91,7 +91,7 @@ namespace kt
percent = 0.0;
else if (percent > 100.0)
percent = 100.0;
- KLocale* loc = TDEGlobal::locale();
+ TDELocale* loc = TDEGlobal::locale();
setText(4,i18n("%1 %").arg(loc->formatNumber(percent,2)));
perc_complete = percent;
}
diff --git a/plugins/infowidget/localefloatvalidator.h b/plugins/infowidget/localefloatvalidator.h
index d5217ba..a20858f 100644
--- a/plugins/infowidget/localefloatvalidator.h
+++ b/plugins/infowidget/localefloatvalidator.h
@@ -28,7 +28,7 @@ namespace kt{
/**
* @author Jonas Widarsson
*
- * A float validator that respects KLocale::decimalSymbol()
+ * A float validator that respects TDELocale::decimalSymbol()
*/
class LocaleFloatValidator : public TQValidator
{
diff --git a/plugins/infowidget/peerview.cpp b/plugins/infowidget/peerview.cpp
index ab3b06f..6d163e4 100644
--- a/plugins/infowidget/peerview.cpp
+++ b/plugins/infowidget/peerview.cpp
@@ -155,7 +155,7 @@ namespace kt
void PeerViewItem::update()
{
- KLocale* loc = TDEGlobal::locale();
+ TDELocale* loc = TDEGlobal::locale();
const PeerInterface::Stats & s = peer->getStats();
if (s.download_rate >= 103) // lowest "visible" speed, all below will be 0,0 Kb/s