summaryrefslogtreecommitdiffstats
path: root/kcontrol/locale/localenum.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kcontrol/locale/localenum.cpp')
-rw-r--r--kcontrol/locale/localenum.cpp92
1 files changed, 46 insertions, 46 deletions
diff --git a/kcontrol/locale/localenum.cpp b/kcontrol/locale/localenum.cpp
index 9e5445ded..537cc99ab 100644
--- a/kcontrol/locale/localenum.cpp
+++ b/kcontrol/locale/localenum.cpp
@@ -21,11 +21,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qlabel.h>
-#include <qlineedit.h>
-#include <qlayout.h>
-#include <qwhatsthis.h>
-#include <qregexp.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
+#include <tqlayout.h>
+#include <tqwhatsthis.h>
+#include <tqregexp.h>
#include <kdialog.h>
#include <ksimpleconfig.h>
@@ -36,43 +36,43 @@
#include "localenum.moc"
KLocaleConfigNumber::KLocaleConfigNumber(KLocale *locale,
- QWidget *parent, const char*name)
- : QWidget(parent, name),
+ TQWidget *parent, const char*name)
+ : TQWidget(parent, name),
m_locale(locale)
{
- QGridLayout *lay = new QGridLayout(this, 5, 2,
+ TQGridLayout *lay = new TQGridLayout(this, 5, 2,
KDialog::marginHint(),
KDialog::spacingHint());
lay->setAutoAdd(TRUE);
- m_labDecSym = new QLabel(this, I18N_NOOP("&Decimal symbol:"));
- m_edDecSym = new QLineEdit(this);
- connect( m_edDecSym, SIGNAL( textChanged(const QString &) ),
- this, SLOT( slotDecSymChanged(const QString &) ) );
+ m_labDecSym = new TQLabel(this, I18N_NOOP("&Decimal symbol:"));
+ m_edDecSym = new TQLineEdit(this);
+ connect( m_edDecSym, TQT_SIGNAL( textChanged(const TQString &) ),
+ this, TQT_SLOT( slotDecSymChanged(const TQString &) ) );
m_labDecSym->setBuddy(m_edDecSym);
- m_labThoSep = new QLabel(this, I18N_NOOP("Tho&usands separator:"));
- m_edThoSep = new QLineEdit(this);
- connect( m_edThoSep, SIGNAL( textChanged(const QString &) ),
- this, SLOT( slotThoSepChanged(const QString &) ) );
+ m_labThoSep = new TQLabel(this, I18N_NOOP("Tho&usands separator:"));
+ m_edThoSep = new TQLineEdit(this);
+ connect( m_edThoSep, TQT_SIGNAL( textChanged(const TQString &) ),
+ this, TQT_SLOT( slotThoSepChanged(const TQString &) ) );
m_labThoSep->setBuddy(m_edThoSep);
- m_labMonPosSign = new QLabel(this, I18N_NOOP("Positive si&gn:"));
- m_edMonPosSign = new QLineEdit(this);
- connect( m_edMonPosSign, SIGNAL( textChanged(const QString &) ),
- this, SLOT( slotMonPosSignChanged(const QString &) ) );
+ m_labMonPosSign = new TQLabel(this, I18N_NOOP("Positive si&gn:"));
+ m_edMonPosSign = new TQLineEdit(this);
+ connect( m_edMonPosSign, TQT_SIGNAL( textChanged(const TQString &) ),
+ this, TQT_SLOT( slotMonPosSignChanged(const TQString &) ) );
m_labMonPosSign->setBuddy(m_edMonPosSign);
- m_labMonNegSign = new QLabel(this, I18N_NOOP("&Negative sign:"));
- m_edMonNegSign = new QLineEdit(this);
- connect( m_edMonNegSign, SIGNAL( textChanged(const QString &) ),
- this, SLOT( slotMonNegSignChanged(const QString &) ) );
+ m_labMonNegSign = new TQLabel(this, I18N_NOOP("&Negative sign:"));
+ m_edMonNegSign = new TQLineEdit(this);
+ connect( m_edMonNegSign, TQT_SIGNAL( textChanged(const TQString &) ),
+ this, TQT_SLOT( slotMonNegSignChanged(const TQString &) ) );
m_labMonNegSign->setBuddy(m_edMonNegSign);
lay->setColStretch(1, 1);
- connect(this, SIGNAL(localeChanged()),
- SLOT(slotLocaleChanged()));
+ connect(this, TQT_SIGNAL(localeChanged()),
+ TQT_SLOT(slotLocaleChanged()));
}
KLocaleConfigNumber::~KLocaleConfigNumber()
@@ -89,26 +89,26 @@ void KLocaleConfigNumber::save()
KConfigGroupSaver saver(config, "Locale");
KSimpleConfig ent(locate("locale",
- QString::fromLatin1("l10n/%1/entry.desktop")
+ TQString::fromLatin1("l10n/%1/entry.desktop")
.arg(m_locale->country())), true);
ent.setGroup("KCM Locale");
- QString str;
+ TQString str;
str = ent.readEntry("DecimalSymbol",
- QString::fromLatin1("."));
+ TQString::fromLatin1("."));
config->deleteEntry("DecimalSymbol", false, true);
if (str != m_locale->decimalSymbol())
config->writeEntry("DecimalSymbol",
m_locale->decimalSymbol(), true, true);
str = ent.readEntry("ThousandsSeparator",
- QString::fromLatin1(","));
+ TQString::fromLatin1(","));
config->deleteEntry("ThousandsSeparator", false, true);
- str.replace(QString::fromLatin1("$0"), QString::null);
+ str.replace(TQString::fromLatin1("$0"), TQString::null);
if (str != m_locale->thousandsSeparator())
config->writeEntry("ThousandsSeparator",
- QString::fromLatin1("$0%1$0")
+ TQString::fromLatin1("$0%1$0")
.arg(m_locale->thousandsSeparator()), true, true);
str = ent.readEntry("PositiveSign");
@@ -116,7 +116,7 @@ void KLocaleConfigNumber::save()
if (str != m_locale->positiveSign())
config->writeEntry("PositiveSign", m_locale->positiveSign(), true, true);
- str = ent.readEntry("NegativeSign", QString::fromLatin1("-"));
+ str = ent.readEntry("NegativeSign", TQString::fromLatin1("-"));
config->deleteEntry("NegativeSign", false, true);
if (str != m_locale->negativeSign())
config->writeEntry("NegativeSign", m_locale->negativeSign(), true, true);
@@ -134,25 +134,25 @@ void KLocaleConfigNumber::slotLocaleChanged()
m_edMonNegSign->setText( m_locale->negativeSign() );
}
-void KLocaleConfigNumber::slotDecSymChanged(const QString &t)
+void KLocaleConfigNumber::slotDecSymChanged(const TQString &t)
{
m_locale->setDecimalSymbol(t);
emit localeChanged();
}
-void KLocaleConfigNumber::slotThoSepChanged(const QString &t)
+void KLocaleConfigNumber::slotThoSepChanged(const TQString &t)
{
m_locale->setThousandsSeparator(t);
emit localeChanged();
}
-void KLocaleConfigNumber::slotMonPosSignChanged(const QString &t)
+void KLocaleConfigNumber::slotMonPosSignChanged(const TQString &t)
{
m_locale->setPositiveSign(t);
emit localeChanged();
}
-void KLocaleConfigNumber::slotMonNegSignChanged(const QString &t)
+void KLocaleConfigNumber::slotMonNegSignChanged(const TQString &t)
{
m_locale->setNegativeSign(t);
emit localeChanged();
@@ -160,7 +160,7 @@ void KLocaleConfigNumber::slotMonNegSignChanged(const QString &t)
void KLocaleConfigNumber::slotTranslate()
{
- QString str;
+ TQString str;
str = m_locale->translate( "Here you can define the decimal separator used "
"to display numbers (i.e. a dot or a comma in "
@@ -168,27 +168,27 @@ void KLocaleConfigNumber::slotTranslate()
"Note that the decimal separator used to "
"display monetary values has to be set "
"separately (see the 'Money' tab)." );
- QWhatsThis::add( m_labDecSym, str );
- QWhatsThis::add( m_edDecSym, str );
+ TQWhatsThis::add( m_labDecSym, str );
+ TQWhatsThis::add( m_edDecSym, str );
str = m_locale->translate( "Here you can define the thousands separator "
"used to display numbers.<p>"
"Note that the thousands separator used to "
"display monetary values has to be set "
"separately (see the 'Money' tab)." );
- QWhatsThis::add( m_labThoSep, str );
- QWhatsThis::add( m_edThoSep, str );
+ TQWhatsThis::add( m_labThoSep, str );
+ TQWhatsThis::add( m_edThoSep, str );
str = m_locale->translate( "Here you can specify text used to prefix "
"positive numbers. Most people leave this "
"blank." );
- QWhatsThis::add( m_labMonPosSign, str );
- QWhatsThis::add( m_edMonPosSign, str );
+ TQWhatsThis::add( m_labMonPosSign, str );
+ TQWhatsThis::add( m_edMonPosSign, str );
str = m_locale->translate( "Here you can specify text used to prefix "
"negative numbers. This should not be empty, so "
"you can distinguish positive and negative "
"numbers. It is normally set to minus (-)." );
- QWhatsThis::add( m_labMonNegSign, str );
- QWhatsThis::add( m_edMonNegSign, str );
+ TQWhatsThis::add( m_labMonNegSign, str );
+ TQWhatsThis::add( m_edMonNegSign, str );
}