summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-30 20:42:14 +0900
committerMichele Calgaro <[email protected]>2023-11-30 23:38:30 +0900
commit80cb02babe265244e12f192f21a732e0ef688c57 (patch)
tree779ff2963f48017e91785914dc4f3c418ba82a51
parenta7a3aa3b97c08edf3930ec9dd01a959678c61ea5 (diff)
downloaddigikam-80cb02babe265244e12f192f21a732e0ef688c57.tar.gz
digikam-80cb02babe265244e12f192f21a732e0ef688c57.zip
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 49d199ca45a47d31b52856437084c0a6810c8175)
-rw-r--r--digikam/digikam/albumiconviewfilter.cpp2
-rw-r--r--digikam/libs/widgets/common/dcursortracker.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/digikam/digikam/albumiconviewfilter.cpp b/digikam/digikam/albumiconviewfilter.cpp
index 6d14616f..27f697c5 100644
--- a/digikam/digikam/albumiconviewfilter.cpp
+++ b/digikam/digikam/albumiconviewfilter.cpp
@@ -190,7 +190,7 @@ bool AlbumIconViewFilter::eventFilter(TQObject *object, TQEvent *e)
if (e->type() == TQEvent::MouseButtonRelease)
{
- TQMouseEvent* event = TQT_TQMOUSEEVENT(e);
+ TQMouseEvent* event = static_cast<TQMouseEvent*>(e);
if ( widget->rect().contains(event->pos()) && d->led->ledColor() != StatusLed::Gray)
{
// Reset all filters settings.
diff --git a/digikam/libs/widgets/common/dcursortracker.cpp b/digikam/libs/widgets/common/dcursortracker.cpp
index bf8880c0..ee8d388c 100644
--- a/digikam/libs/widgets/common/dcursortracker.cpp
+++ b/digikam/libs/widgets/common/dcursortracker.cpp
@@ -64,7 +64,7 @@ bool DCursorTracker::eventFilter(TQObject *object, TQEvent *e)
{
case TQEvent::MouseMove:
{
- TQMouseEvent *event = TQT_TQMOUSEEVENT(e);
+ TQMouseEvent *event = static_cast<TQMouseEvent*>(e);
if (m_enable && (widget->rect().contains(event->pos()) ||
(event->stateAfter() & TQt::LeftButton)))
{
@@ -81,7 +81,7 @@ bool DCursorTracker::eventFilter(TQObject *object, TQEvent *e)
case TQEvent::MouseButtonRelease:
{
- TQMouseEvent* event = TQT_TQMOUSEEVENT(e);
+ TQMouseEvent* event = static_cast<TQMouseEvent*>(e);
if ( !widget->rect().contains(event->pos()) )
{
hide();