From d6dc3a3da7d2a03c48ac877797101db18898962d Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 30 Nov 2023 21:31:25 +0900 Subject: Replace 'Event' #define strings Signed-off-by: Michele Calgaro (cherry picked from commit 13093726579680e75f444dc8b0711af5b02a2f07) --- kbabel/kbabeldict/kbabeldictbox.cpp | 2 +- scheck/scheck.cpp | 2 +- umbrello/umbrello/umllistview.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kbabel/kbabeldict/kbabeldictbox.cpp b/kbabel/kbabeldict/kbabeldictbox.cpp index d1d8dafd..1be091ff 100644 --- a/kbabel/kbabeldict/kbabeldictbox.cpp +++ b/kbabel/kbabeldict/kbabeldictbox.cpp @@ -1609,7 +1609,7 @@ bool KBabelDictBox::eventFilter(TQObject *o, TQEvent *e) { if(e->type() == TQEvent::Wheel) { - TQWheelEvent *we = TQT_TQWHEELEVENT(e); + TQWheelEvent *we = static_cast(e); if(we) { wheelEvent(we); diff --git a/scheck/scheck.cpp b/scheck/scheck.cpp index e04b89d4..5c5e2579 100644 --- a/scheck/scheck.cpp +++ b/scheck/scheck.cpp @@ -2701,7 +2701,7 @@ bool StyleCheckStyle::objectEventHandler( const TQStyleControlElementData &ceDat if ( event->type() == TQEvent::Paint && object->inherits("TQGroupBox") ) { - TQPaintEvent * pevent = TQT_TQPAINTEVENT(event); + TQPaintEvent * pevent = static_cast(event); TQGroupBox* gb = static_cast(TQT_TQWIDGET(object)); bool nestedGroupBox = false; TQString stripped_title = removedXX(stripAccelViolations(gb->title())); diff --git a/umbrello/umbrello/umllistview.cpp b/umbrello/umbrello/umllistview.cpp index cf38403c..0a7b1183 100644 --- a/umbrello/umbrello/umllistview.cpp +++ b/umbrello/umbrello/umllistview.cpp @@ -144,7 +144,7 @@ UMLListView::~UMLListView() {} bool UMLListView::eventFilter(TQObject *o, TQEvent *e) { if (e->type() != TQEvent::MouseButtonPress || !o->isA("TQHeader")) return TQListView::eventFilter(o, e); - TQMouseEvent *me = TQT_TQMOUSEEVENT(e); + TQMouseEvent *me = static_cast(e); if (me->button() == TQt::RightButton) { if (m_pMenu) { m_pMenu->hide(); -- cgit v1.2.1