summaryrefslogtreecommitdiffstats
path: root/kicker/applets
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-30 21:30:28 +0900
committerMichele Calgaro <[email protected]>2023-12-02 22:50:02 +0900
commitb19e4cab8888a6f486ebdb7242ea5f65435cb68c (patch)
treeb23c2cdc474711742f76fa71df81896c3f421c94 /kicker/applets
parent6b5d95d534223dc1d09d8d8f5eec1f146d8b1dec (diff)
downloadtdebase-b19e4cab8888a6f486ebdb7242ea5f65435cb68c.tar.gz
tdebase-b19e4cab8888a6f486ebdb7242ea5f65435cb68c.zip
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 8aea8afbc5fcc3bfd0d6234bf91436cbb290ed43)
Diffstat (limited to 'kicker/applets')
-rw-r--r--kicker/applets/clock/clock.cpp2
-rw-r--r--kicker/applets/lockout/lockout.cpp2
-rw-r--r--kicker/applets/systemtray/systemtrayapplet.cpp6
3 files changed, 5 insertions, 5 deletions
diff --git a/kicker/applets/clock/clock.cpp b/kicker/applets/clock/clock.cpp
index c4fd6476a..131ce7482 100644
--- a/kicker/applets/clock/clock.cpp
+++ b/kicker/applets/clock/clock.cpp
@@ -1678,7 +1678,7 @@ bool ClockApplet::eventFilter( TQObject *o, TQEvent *e )
if (( o == _clock->widget() || o == _date || o == _dayOfWeek) &&
e->type() == TQEvent::MouseButtonPress )
{
- mousePressEvent(TQT_TQMOUSEEVENT(e) );
+ mousePressEvent(static_cast<TQMouseEvent*>(e) );
return true;
}
diff --git a/kicker/applets/lockout/lockout.cpp b/kicker/applets/lockout/lockout.cpp
index abe34c978..800c9f8a6 100644
--- a/kicker/applets/lockout/lockout.cpp
+++ b/kicker/applets/lockout/lockout.cpp
@@ -193,7 +193,7 @@ bool Lockout::eventFilter( TQObject *o, TQEvent *e )
TDEConfig *conf = config();
conf->setGroup("lockout");
- TQMouseEvent *me = TQT_TQMOUSEEVENT( e );
+ TQMouseEvent *me = static_cast<TQMouseEvent*>( e );
if( me->button() == TQt::RightButton )
{
if( o == lockButton )
diff --git a/kicker/applets/systemtray/systemtrayapplet.cpp b/kicker/applets/systemtray/systemtrayapplet.cpp
index 25a6de7de..2985e1915 100644
--- a/kicker/applets/systemtray/systemtrayapplet.cpp
+++ b/kicker/applets/systemtray/systemtrayapplet.cpp
@@ -838,11 +838,11 @@ bool SystemTrayApplet::eventFilter(TQObject* watched, TQEvent* e)
TQPoint p;
if (e->type() == TQEvent::ContextMenu)
{
- p = TQT_TQCONTEXTMENUEVENT(e)->globalPos();
+ p = static_cast<TQContextMenuEvent*>(e)->globalPos();
}
else if (e->type() == TQEvent::MouseButtonPress)
{
- TQMouseEvent* me = TQT_TQMOUSEEVENT(e);
+ TQMouseEvent* me = static_cast<TQMouseEvent*>(e);
if (me->button() == TQt::RightButton)
{
p = me->globalPos();
@@ -855,7 +855,7 @@ bool SystemTrayApplet::eventFilter(TQObject* watched, TQEvent* e)
contextMenu->insertItem(SmallIcon("configure"), i18n("Configure System Tray..."),
this, TQT_SLOT(configure()));
- contextMenu->exec(TQT_TQCONTEXTMENUEVENT(e)->globalPos());
+ contextMenu->exec(static_cast<TQContextMenuEvent*>(e)->globalPos());
delete contextMenu;
return true;