summaryrefslogtreecommitdiffstats
path: root/kcontrol/locale/localeother.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 08:14:08 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 08:14:08 -0600
commit98f4a055baf6eb7ea5c3d69d6a3f2162b491e253 (patch)
treef56598fd630d341dd40899da38b7fd4b3931770a /kcontrol/locale/localeother.cpp
parent93943a849d1abc2003ceefe294dc419b9927f7d0 (diff)
downloadtdebase-98f4a055baf6eb7ea5c3d69d6a3f2162b491e253.tar.gz
tdebase-98f4a055baf6eb7ea5c3d69d6a3f2162b491e253.zip
Rename KLocale to enhance compatibility with KDE4
Diffstat (limited to 'kcontrol/locale/localeother.cpp')
-rw-r--r--kcontrol/locale/localeother.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kcontrol/locale/localeother.cpp b/kcontrol/locale/localeother.cpp
index 2231864ef..66b95e50c 100644
--- a/kcontrol/locale/localeother.cpp
+++ b/kcontrol/locale/localeother.cpp
@@ -35,7 +35,7 @@
#include "localeother.moc"
-KLocaleConfigOther::KLocaleConfigOther(KLocale *locale,
+TDELocaleConfigOther::TDELocaleConfigOther(TDELocale *locale,
TQWidget *parent, const char*name)
: TQWidget(parent, name),
m_locale(locale)
@@ -70,11 +70,11 @@ KLocaleConfigOther::KLocaleConfigOther(KLocale *locale,
adjustSize();
}
-KLocaleConfigOther::~KLocaleConfigOther()
+TDELocaleConfigOther::~TDELocaleConfigOther()
{
}
-void KLocaleConfigOther::save()
+void TDELocaleConfigOther::save()
{
TDEConfig *config = TDEGlobal::config();
TDEConfigGroupSaver saver(config, "Locale");
@@ -92,7 +92,7 @@ void KLocaleConfigOther::save()
config->writeEntry("PageSize",
m_locale->pageSize(), true, true);
- i = ent.readNumEntry("MeasureSystem", (int)KLocale::Metric);
+ i = ent.readNumEntry("MeasureSystem", (int)TDELocale::Metric);
config->deleteEntry("MeasureSystem", false, true);
if (i != m_locale->measureSystem())
config->writeEntry("MeasureSystem",
@@ -101,7 +101,7 @@ void KLocaleConfigOther::save()
config->sync();
}
-void KLocaleConfigOther::slotLocaleChanged()
+void TDELocaleConfigOther::slotLocaleChanged()
{
m_combMeasureSystem->setCurrentItem(m_locale->measureSystem());
@@ -113,7 +113,7 @@ void KLocaleConfigOther::slotLocaleChanged()
m_combPageSize->setCurrentItem(i);
}
-void KLocaleConfigOther::slotTranslate()
+void TDELocaleConfigOther::slotTranslate()
{
m_combMeasureSystem->changeItem( m_locale->translate("The Metric System",
"Metric"), 0 );
@@ -124,7 +124,7 @@ void KLocaleConfigOther::slotTranslate()
m_combPageSize->changeItem( m_locale->translate("US Letter"), 1 );
}
-void KLocaleConfigOther::slotPageSizeChanged(int i)
+void TDELocaleConfigOther::slotPageSizeChanged(int i)
{
TQPrinter::PageSize pageSize = TQPrinter::A4;
@@ -135,8 +135,8 @@ void KLocaleConfigOther::slotPageSizeChanged(int i)
emit localeChanged();
}
-void KLocaleConfigOther::slotMeasureSystemChanged(int i)
+void TDELocaleConfigOther::slotMeasureSystemChanged(int i)
{
- m_locale->setMeasureSystem((KLocale::MeasureSystem)i);
+ m_locale->setMeasureSystem((TDELocale::MeasureSystem)i);
emit localeChanged();
}