summaryrefslogtreecommitdiffstats
path: root/kmoon/kmoonapplet.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:49:52 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:49:52 +0000
commitcfc42a28c327b96c6a2afee92af3bac1a479eb8a (patch)
treee3219edf5f827eaa4db3feb509a17846a1a5a752 /kmoon/kmoonapplet.cpp
parenta73fc4d7e66fe0824313aa4e9a650c4cddef6e9f (diff)
downloadtdetoys-cfc42a28c327b96c6a2afee92af3bac1a479eb8a.tar.gz
tdetoys-cfc42a28c327b96c6a2afee92af3bac1a479eb8a.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdetoys@1157650 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmoon/kmoonapplet.cpp')
-rw-r--r--kmoon/kmoonapplet.cpp34
1 files changed, 17 insertions, 17 deletions
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 <assert.h>
#include <unistd.h>
-#include <qbitmap.h>
-#include <qtooltip.h>
-#include <qpainter.h>
-#include <qpopupmenu.h>
-#include <qlayout.h>
+#include <tqbitmap.h>
+#include <tqtooltip.h>
+#include <tqpainter.h>
+#include <tqpopupmenu.h>
+#include <tqlayout.h>
#include <dcopclient.h>
#include <kdebug.h>
@@ -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 <coolo@kde.org>\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;