summaryrefslogtreecommitdiffstats
path: root/kcontrol/locale/klocalesample.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kcontrol/locale/klocalesample.cpp
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz
tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcontrol/locale/klocalesample.cpp')
-rw-r--r--kcontrol/locale/klocalesample.cpp74
1 files changed, 37 insertions, 37 deletions
diff --git a/kcontrol/locale/klocalesample.cpp b/kcontrol/locale/klocalesample.cpp
index e78ae966c..bf4cc8b32 100644
--- a/kcontrol/locale/klocalesample.cpp
+++ b/kcontrol/locale/klocalesample.cpp
@@ -23,11 +23,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qdatetime.h>
-#include <qlabel.h>
-#include <qwhatsthis.h>
-#include <qlayout.h>
-#include <qtimer.h>
+#include <tqdatetime.h>
+#include <tqlabel.h>
+#include <tqwhatsthis.h>
+#include <tqlayout.h>
+#include <tqtimer.h>
#include <stdio.h>
@@ -37,48 +37,48 @@
#include "klocalesample.moc"
KLocaleSample::KLocaleSample(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);
lay->setAutoAdd(TRUE);
// Whatever the color scheme is, we want black text
- QColorGroup a = palette().active();
- a.setColor(QColorGroup::Foreground, Qt::black);
- QPalette pal(a, a, a);
+ TQColorGroup a = palette().active();
+ a.setColor(TQColorGroup::Foreground, Qt::black);
+ TQPalette pal(a, a, a);
- m_labNumber = new QLabel(this, I18N_NOOP("Numbers:"));
+ m_labNumber = new TQLabel(this, I18N_NOOP("Numbers:"));
m_labNumber->setPalette(pal);
- m_numberSample = new QLabel(this);
+ m_numberSample = new TQLabel(this);
m_numberSample->setPalette(pal);
- m_labMoney = new QLabel(this, I18N_NOOP("Money:"));
+ m_labMoney = new TQLabel(this, I18N_NOOP("Money:"));
m_labMoney->setPalette(pal);
- m_moneySample = new QLabel(this);
+ m_moneySample = new TQLabel(this);
m_moneySample->setPalette(pal);
- m_labDate = new QLabel(this, I18N_NOOP("Date:"));
+ m_labDate = new TQLabel(this, I18N_NOOP("Date:"));
m_labDate->setPalette(pal);
- m_dateSample = new QLabel(this);
+ m_dateSample = new TQLabel(this);
m_dateSample->setPalette(pal);
- m_labDateShort = new QLabel(this, I18N_NOOP("Short date:"));
+ m_labDateShort = new TQLabel(this, I18N_NOOP("Short date:"));
m_labDateShort->setPalette(pal);
- m_dateShortSample = new QLabel(this);
+ m_dateShortSample = new TQLabel(this);
m_dateShortSample->setPalette(pal);
- m_labTime = new QLabel(this, I18N_NOOP("Time:"));
+ m_labTime = new TQLabel(this, I18N_NOOP("Time:"));
m_labTime->setPalette(pal);
- m_timeSample = new QLabel(this);
+ m_timeSample = new TQLabel(this);
m_timeSample->setPalette(pal);
lay->setColStretch(0, 1);
lay->setColStretch(1, 3);
- QTimer *timer = new QTimer(this, "clock_timer");
- connect(timer, SIGNAL(timeout()), this, SLOT(slotUpdateTime()));
+ TQTimer *timer = new TQTimer(this, "clock_timer");
+ connect(timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotUpdateTime()));
timer->start(1000);
}
@@ -88,7 +88,7 @@ KLocaleSample::~KLocaleSample()
void KLocaleSample::slotUpdateTime()
{
- QDateTime dt = QDateTime::currentDateTime();
+ TQDateTime dt = TQDateTime::currentDateTime();
m_dateSample->setText(m_locale->formatDate(dt.date(), false));
m_dateShortSample->setText(m_locale->formatDate(dt.date(), true));
@@ -98,35 +98,35 @@ void KLocaleSample::slotUpdateTime()
void KLocaleSample::slotLocaleChanged()
{
m_numberSample->setText(m_locale->formatNumber(1234567.89) +
- QString::fromLatin1(" / ") +
+ TQString::fromLatin1(" / ") +
m_locale->formatNumber(-1234567.89));
m_moneySample->setText(m_locale->formatMoney(123456789.00) +
- QString::fromLatin1(" / ") +
+ TQString::fromLatin1(" / ") +
m_locale->formatMoney(-123456789.00));
slotUpdateTime();
- QString str;
+ TQString str;
str = m_locale->translate("This is how numbers will be displayed.");
- QWhatsThis::add( m_labNumber, str );
- QWhatsThis::add( m_numberSample, str );
+ TQWhatsThis::add( m_labNumber, str );
+ TQWhatsThis::add( m_numberSample, str );
str = m_locale->translate("This is how monetary values will be displayed.");
- QWhatsThis::add( m_labMoney, str );
- QWhatsThis::add( m_moneySample, str );
+ TQWhatsThis::add( m_labMoney, str );
+ TQWhatsThis::add( m_moneySample, str );
str = m_locale->translate("This is how date values will be displayed.");
- QWhatsThis::add( m_labDate, str );
- QWhatsThis::add( m_dateSample, str );
+ TQWhatsThis::add( m_labDate, str );
+ TQWhatsThis::add( m_dateSample, str );
str = m_locale->translate("This is how date values will be displayed using "
"a short notation.");
- QWhatsThis::add( m_labDateShort, str );
- QWhatsThis::add( m_dateShortSample, str );
+ TQWhatsThis::add( m_labDateShort, str );
+ TQWhatsThis::add( m_dateShortSample, str );
str = m_locale->translate("This is how the time will be displayed.");
- QWhatsThis::add( m_labTime, str );
- QWhatsThis::add( m_timeSample, str );
+ TQWhatsThis::add( m_labTime, str );
+ TQWhatsThis::add( m_timeSample, str );
}