summaryrefslogtreecommitdiffstats
path: root/tdeui/kurllabel.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-30 21:30:52 +0900
committerMichele Calgaro <[email protected]>2023-12-02 22:49:42 +0900
commitd8d8319b3dddc86303699f242be2f1a36206da8e (patch)
tree4d8df38004b23ec50344a7126746bbb3453994a5 /tdeui/kurllabel.cpp
parent3a837ecf257dc334d65818d456d5a6bd6a8b98ef (diff)
downloadtdelibs-d8d8319b3dddc86303699f242be2f1a36206da8e.tar.gz
tdelibs-d8d8319b3dddc86303699f242be2f1a36206da8e.zip
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit f22a9c72dda24871973033123039639af6577eaa)
Diffstat (limited to 'tdeui/kurllabel.cpp')
-rw-r--r--tdeui/kurllabel.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tdeui/kurllabel.cpp b/tdeui/kurllabel.cpp
index c87695e68..434ef56bb 100644
--- a/tdeui/kurllabel.cpp
+++ b/tdeui/kurllabel.cpp
@@ -308,7 +308,7 @@ void KURLLabel::enterEvent (TQEvent* e)
TQLabel::enterEvent (e);
TQRect r( activeRect() );
- if (!r.contains( TQT_TQMOUSEEVENT(e)->pos() ))
+ if (!r.contains( static_cast<TQMouseEvent*>(e)->pos() ))
return;
if (!d->AltPixmap.isNull() && pixmap())
@@ -372,7 +372,7 @@ bool KURLLabel::event (TQEvent *e)
return result;
}
else if (e->type() == TQEvent::KeyPress) {
- TQKeyEvent* ke = TQT_TQKEYEVENT(e);
+ TQKeyEvent* ke = static_cast<TQKeyEvent*>(e);
if (ke->key() == TQt::Key_Enter || ke->key() == TQt::Key_Return) {
setLinkColor (d->HighlightedLinkColor);
d->Timer->start (300);
@@ -384,12 +384,12 @@ bool KURLLabel::event (TQEvent *e)
}
else if (e->type() == TQEvent::MouseButtonPress) {
TQRect r( activeRect() );
- d->MousePressed = r.contains(TQT_TQMOUSEEVENT(e)->pos());
+ d->MousePressed = r.contains(static_cast<TQMouseEvent*>(e)->pos());
}
else if (e->type() == TQEvent::MouseMove) {
if (d->Cursor) {
TQRect r( activeRect() );
- bool inside = r.contains(TQT_TQMOUSEEVENT(e)->pos());
+ bool inside = r.contains(static_cast<TQMouseEvent*>(e)->pos());
if (d->WasInsideRect != inside) {
if (inside)
TQLabel::setCursor(*d->Cursor);