summaryrefslogtreecommitdiffstats
path: root/kmoon/kmoonapplet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmoon/kmoonapplet.cpp')
-rw-r--r--kmoon/kmoonapplet.cpp29
1 files changed, 5 insertions, 24 deletions
diff --git a/kmoon/kmoonapplet.cpp b/kmoon/kmoonapplet.cpp
index 1a653f9..5f9158b 100644
--- a/kmoon/kmoonapplet.cpp
+++ b/kmoon/kmoonapplet.cpp
@@ -19,30 +19,12 @@
*
*/
-#include <stdlib.h>
-#include <assert.h>
-#include <unistd.h>
-
-#include <tqbitmap.h>
-#include <tqtooltip.h>
-#include <tqpainter.h>
#include <tqpopupmenu.h>
#include <tqlayout.h>
-#include <dcopclient.h>
-#include <kdebug.h>
-#include <tdeapplication.h>
-#include <twin.h>
-#include <tdestartupinfo.h>
#include <tdemessagebox.h>
-#include <tdeaboutdata.h>
#include <tdelocale.h>
-#include <kstandarddirs.h>
-#include <tdecmdlineargs.h>
#include <kiconloader.h>
-#include <kiconeffect.h>
-#include <tdeconfig.h>
-#include <kdialogbase.h>
#include "version.h"
#include "kmoondlg.h"
@@ -53,7 +35,7 @@ const char *description = I18N_NOOP("Moon Phase Indicator for TDE");
extern "C"
{
- KDE_EXPORT KPanelApplet *init(TQWidget *parent, const TQString& configFile)
+ TDE_EXPORT KPanelApplet *init(TQWidget *parent, const TQString& configFile)
{
TDEGlobal::locale()->insertCatalogue("kmoon");
return new MoonPAWidget(configFile, KPanelApplet::Normal,
@@ -80,9 +62,9 @@ MoonPAWidget::MoonPAWidget(const TQString& configFile, Type type, int actions,
popup = new TQPopupMenu();
popup->insertItem(SmallIcon("kmoon"),
i18n("&About"), this,
- TQT_SLOT(showAbout()));
+ TQ_SLOT(showAbout()));
popup->insertItem(SmallIcon("configure"), i18n("&Configure..."), this,
- TQT_SLOT(settings()));
+ TQ_SLOT(settings()));
// missuse timerEvent for initialising
timerEvent(0);
@@ -145,7 +127,6 @@ void MoonPAWidget::timerEvent( TQTimerEvent * )
time(&clock);
struct tm *t = localtime(&clock);
moon->calcStatus(mktime(t));
- moon->repaint();
}
void MoonPAWidget::mousePressEvent( TQMouseEvent *e)
@@ -153,11 +134,11 @@ void MoonPAWidget::mousePressEvent( TQMouseEvent *e)
if (!popup)
return;
- if (e->button() == Qt::RightButton) {
+ if (e->button() == TQt::RightButton) {
popup->popup(mapToGlobal(e->pos()));
popup->exec();
}
- if (e->button() == Qt::LeftButton) {
+ if (e->button() == TQt::LeftButton) {
showAbout();
}
}