From 193a26b3f123b7dd30ebd12b4034cbf3c97849d9 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 12 Aug 2023 18:49:00 +0900 Subject: [PATCH] Drop TQT_BASE_OBJECT* defines Signed-off-by: Michele Calgaro (cherry picked from commit fb720946cf074451cbd8a98cf81de2dd1f77d7b8) --- kipi-plugins/acquireimages/plugin_acquireimages.cpp | 2 +- kipi-plugins/acquireimages/screenshotdialog.cpp | 2 +- .../batchprocessimages/plugin_batchprocessimages.cpp | 2 +- kipi-plugins/jpeglossless/plugin_jpeglossless.cpp | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/kipi-plugins/acquireimages/plugin_acquireimages.cpp b/kipi-plugins/acquireimages/plugin_acquireimages.cpp index 50da6d4..105ba81 100644 --- a/kipi-plugins/acquireimages/plugin_acquireimages.cpp +++ b/kipi-plugins/acquireimages/plugin_acquireimages.cpp @@ -96,7 +96,7 @@ void Plugin_AcquireImages::slotActivate() return; } - TQString from(TQT_TQOBJECT(const_cast(sender()))->name()); + TQString from(TQT_TQOBJECT(sender())->name()); if (from == "scan_images") { diff --git a/kipi-plugins/acquireimages/screenshotdialog.cpp b/kipi-plugins/acquireimages/screenshotdialog.cpp index e2b65ee..d29ae8d 100644 --- a/kipi-plugins/acquireimages/screenshotdialog.cpp +++ b/kipi-plugins/acquireimages/screenshotdialog.cpp @@ -294,7 +294,7 @@ void ScreenGrabDialog::endGrab(void) bool ScreenGrabDialog::eventFilter( TQObject* o, TQEvent* e) { - if ( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_grabber) && e->type() == TQEvent::MouseButtonPress ) + if ( o == m_grabber && e->type() == TQEvent::MouseButtonPress ) { TQMouseEvent* me = (TQMouseEvent*) e; diff --git a/kipi-plugins/batchprocessimages/plugin_batchprocessimages.cpp b/kipi-plugins/batchprocessimages/plugin_batchprocessimages.cpp index 3d777b2..5114f7a 100644 --- a/kipi-plugins/batchprocessimages/plugin_batchprocessimages.cpp +++ b/kipi-plugins/batchprocessimages/plugin_batchprocessimages.cpp @@ -232,7 +232,7 @@ void Plugin_BatchProcessImages::slotActivate() KURL::List urlList = images.images(); - TQString from(TQT_TQOBJECT(const_cast(sender()))->name()); + TQString from(TQT_TQOBJECT(sender())->name()); if (from == "batch_convert_images") { diff --git a/kipi-plugins/jpeglossless/plugin_jpeglossless.cpp b/kipi-plugins/jpeglossless/plugin_jpeglossless.cpp index 99feebc..54f42ce 100644 --- a/kipi-plugins/jpeglossless/plugin_jpeglossless.cpp +++ b/kipi-plugins/jpeglossless/plugin_jpeglossless.cpp @@ -179,7 +179,7 @@ void Plugin_JPEGLossless::slotFlip() KURL::List items = images(); if (items.count() <= 0) return; - TQString from(TQT_TQOBJECT(const_cast(sender()))->name()); + TQString from(TQT_TQOBJECT(sender())->name()); TQString title; bool proceed = false; @@ -229,7 +229,7 @@ void Plugin_JPEGLossless::slotRotate() KURL::List items = images(); if (items.count() <= 0) return; - TQString from(TQT_TQOBJECT(const_cast(sender()))->name()); + TQString from(TQT_TQOBJECT(sender())->name()); TQString title; bool proceed = false; @@ -289,7 +289,7 @@ void Plugin_JPEGLossless::slotConvert2GrayScale() "black and white? This operation cannot be undone.

"))) return; - TQString from(TQT_TQOBJECT(const_cast(sender()))->name()); + TQString from(TQT_TQOBJECT(sender())->name()); m_total = items.count(); m_current = 0;