From cfc42a28c327b96c6a2afee92af3bac1a479eb8a Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:49:52 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdetoys@1157650 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kmoon/kmoonapplet.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'kmoon/kmoonapplet.cpp') diff --git a/kmoon/kmoonapplet.cpp b/kmoon/kmoonapplet.cpp index 9b3dd87..deb91ec 100644 --- a/kmoon/kmoonapplet.cpp +++ b/kmoon/kmoonapplet.cpp @@ -23,11 +23,11 @@ #include #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include @@ -53,7 +53,7 @@ const char *description = I18N_NOOP("Moon Phase Indicator for KDE"); extern "C" { - KDE_EXPORT KPanelApplet *init(QWidget *parent, const QString& configFile) + KDE_EXPORT KPanelApplet *init(TQWidget *parent, const TQString& configFile) { KGlobal::locale()->insertCatalogue("kmoon"); return new MoonPAWidget(configFile, KPanelApplet::Normal, @@ -62,14 +62,14 @@ extern "C" } } -MoonPAWidget::MoonPAWidget(const QString& configFile, Type type, int actions, - QWidget *parent, const char *name) +MoonPAWidget::MoonPAWidget(const TQString& configFile, Type type, int actions, + TQWidget *parent, const char *name) : KPanelApplet(configFile, type, actions, parent, name) { KConfig *config = KGlobal::config(); config->setGroup("General"); - QVBoxLayout *vbox = new QVBoxLayout(this, 0,0); + TQVBoxLayout *vbox = new TQVBoxLayout(this, 0,0); moon = new MoonWidget(this); moon->setAngle(config->readNumEntry("Rotation", 0)); moon->setNorthHemi(config->readBoolEntry("Northern", true)); @@ -77,12 +77,12 @@ MoonPAWidget::MoonPAWidget(const QString& configFile, Type type, int actions, vbox->addWidget(moon); startTimer(1000 * 60 * 20); - popup = new QPopupMenu(); + popup = new TQPopupMenu(); popup->insertItem(SmallIcon("kmoon"), i18n("&About"), this, - SLOT(showAbout())); + TQT_SLOT(showAbout())); popup->insertItem(SmallIcon("configure"), i18n("&Configure..."), this, - SLOT(settings())); + TQT_SLOT(settings())); // missuse timerEvent for initialising timerEvent(0); @@ -103,8 +103,8 @@ void MoonPAWidget::showAbout() 0, "about", true, true, KStdGuiItem::ok() ); - QPixmap ret = DesktopIcon("kmoon"); - QString text = i18n(description) + QString::fromLatin1("\n\n") + + TQPixmap ret = DesktopIcon("kmoon"); + TQString text = i18n(description) + TQString::fromLatin1("\n\n") + i18n("Written by Stephan Kulow \n" "\n" "Made an applet by M G Berberich " @@ -118,7 +118,7 @@ void MoonPAWidget::showAbout() dialog->setIcon(ret); - KMessageBox::createKMessageBox(dialog, ret, text, QStringList(), QString::null, 0, KMessageBox::Notify); + KMessageBox::createKMessageBox(dialog, ret, text, TQStringList(), TQString::null, 0, KMessageBox::Notify); } void MoonPAWidget::settings() @@ -139,7 +139,7 @@ void MoonPAWidget::settings() repaint(); } -void MoonPAWidget::timerEvent( QTimerEvent * ) +void MoonPAWidget::timerEvent( TQTimerEvent * ) { time_t clock; time(&clock); @@ -148,7 +148,7 @@ void MoonPAWidget::timerEvent( QTimerEvent * ) moon->repaint(); } -void MoonPAWidget::mousePressEvent( QMouseEvent *e) +void MoonPAWidget::mousePressEvent( TQMouseEvent *e) { if (!popup) return; -- cgit v1.2.3