summaryrefslogtreecommitdiffstats
path: root/kworldwatch/applet.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 /kworldwatch/applet.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 'kworldwatch/applet.cpp')
-rw-r--r--kworldwatch/applet.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kworldwatch/applet.cpp b/kworldwatch/applet.cpp
index a12a987..09b67c0 100644
--- a/kworldwatch/applet.cpp
+++ b/kworldwatch/applet.cpp
@@ -25,7 +25,7 @@
/*
** Bug reports and questions can be sent to kde-devel@kde.org
*/
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kapplication.h>
@@ -42,7 +42,7 @@
extern "C"
{
- KDE_EXPORT KPanelApplet *init(QWidget *parent, const QString& configFile)
+ KDE_EXPORT KPanelApplet *init(TQWidget *parent, const TQString& configFile)
{
KGlobal::locale()->insertCatalogue("kworldclock");
KGlobal::locale()->insertCatalogue("timezones"); // For time zone translation
@@ -53,14 +53,14 @@ extern "C"
}
-KWWApplet::KWWApplet(const QString& configFile, Type type, int actions,
- QWidget *parent, const char *name)
+KWWApplet::KWWApplet(const TQString& configFile, Type type, int actions,
+ TQWidget *parent, const char *name)
: KPanelApplet(configFile, type, actions, parent, name)
{
// make use of the icons installed for ksaferppp
KGlobal::iconLoader()->addAppDir("kworldwatch");
- QVBoxLayout *vbox = new QVBoxLayout(this, 0,0);
+ TQVBoxLayout *vbox = new TQVBoxLayout(this, 0,0);
map = new MapWidget(true, true, this);
map->load(config());
@@ -90,11 +90,11 @@ int KWWApplet::heightForWidth(int width) const
// catch the mouse clicks of our child widgets
-bool KWWApplet::eventFilter( QObject *o, QEvent *e )
+bool KWWApplet::eventFilter( TQObject *o, TQEvent *e )
{
- if ((e->type() == QEvent::MouseButtonPress) || (e->type() == QEvent::MouseButtonDblClick))
+ if ((e->type() == TQEvent::MouseButtonPress) || (e->type() == TQEvent::MouseButtonDblClick))
{
- mousePressEvent(static_cast<QMouseEvent*>(e));
+ mousePressEvent(static_cast<TQMouseEvent*>(e));
return true;
}
@@ -102,20 +102,20 @@ bool KWWApplet::eventFilter( QObject *o, QEvent *e )
}
-void KWWApplet::mousePressEvent(QMouseEvent *e)
+void KWWApplet::mousePressEvent(TQMouseEvent *e)
{
bool clicked = false;
if (KGlobalSettings::singleClick())
{
- clicked = e->type() == QMouseEvent::MouseButtonPress;
+ clicked = e->type() == TQMouseEvent::MouseButtonPress;
}
else
{
- clicked = e->type() == QMouseEvent::MouseButtonDblClick;
+ clicked = e->type() == TQMouseEvent::MouseButtonDblClick;
}
- if (clicked && e->button() == QMouseEvent::LeftButton)
+ if (clicked && e->button() == TQMouseEvent::LeftButton)
{
KRun::run("kworldclock", KURL::List());
}