From a1bd60b34891ccc77056c190d7871bc4b14fe654 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 22 Jun 2011 21:31:21 +0000 Subject: TQt4 port kdetoys This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdetoys@1238103 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kworldwatch/applet.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'kworldwatch/applet.cpp') diff --git a/kworldwatch/applet.cpp b/kworldwatch/applet.cpp index 09b67c0..6f9615d 100644 --- a/kworldwatch/applet.cpp +++ b/kworldwatch/applet.cpp @@ -1,6 +1,6 @@ /* ** -** Copyright (C) 1998-2001 by Matthias Hölzer-Klüpfel +** Copyright (C) 1998-2001 by Matthias H�lzer-Kl�pfel ** Maintainence has ceased - send questions to kde-devel@kde.org. ** */ @@ -42,20 +42,20 @@ extern "C" { - KDE_EXPORT KPanelApplet *init(TQWidget *parent, const TQString& configFile) + KDE_EXPORT KPanelApplet *init(TQWidget *tqparent, const TQString& configFile) { KGlobal::locale()->insertCatalogue("kworldclock"); KGlobal::locale()->insertCatalogue("timezones"); // For time zone translation return new KWWApplet(configFile, KPanelApplet::Normal, 0, - parent, "kwwapplet"); + tqparent, "kwwapplet"); } } KWWApplet::KWWApplet(const TQString& configFile, Type type, int actions, - TQWidget *parent, const char *name) - : KPanelApplet(configFile, type, actions, parent, name) + TQWidget *tqparent, const char *name) + : KPanelApplet(configFile, type, actions, tqparent, name) { // make use of the icons installed for ksaferppp KGlobal::iconLoader()->addAppDir("kworldwatch"); @@ -94,7 +94,7 @@ bool KWWApplet::eventFilter( TQObject *o, TQEvent *e ) { if ((e->type() == TQEvent::MouseButtonPress) || (e->type() == TQEvent::MouseButtonDblClick)) { - mousePressEvent(static_cast(e)); + mousePressEvent(TQT_TQMOUSEEVENT(e)); return true; } @@ -115,7 +115,7 @@ void KWWApplet::mousePressEvent(TQMouseEvent *e) clicked = e->type() == TQMouseEvent::MouseButtonDblClick; } - if (clicked && e->button() == TQMouseEvent::LeftButton) + if (clicked && e->button() == Qt::LeftButton) { KRun::run("kworldclock", KURL::List()); } -- cgit v1.2.1