diff options
author | Michele Calgaro <[email protected]> | 2023-11-30 21:30:52 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-30 21:30:52 +0900 |
commit | f22a9c72dda24871973033123039639af6577eaa (patch) | |
tree | 3e9e1aa31f39f5945b92282e7d14a0c88a0ebcbf /tdeui/kurllabel.cpp | |
parent | 7a00e005dd5806a1056488e3a1199bf382a42623 (diff) | |
download | tdelibs-f22a9c72dda24871973033123039639af6577eaa.tar.gz tdelibs-f22a9c72dda24871973033123039639af6577eaa.zip |
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'tdeui/kurllabel.cpp')
-rw-r--r-- | tdeui/kurllabel.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tdeui/kurllabel.cpp b/tdeui/kurllabel.cpp index db6212a51..60e2faba6 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); |