summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-08-12 18:49:00 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-08-15 20:08:53 +0900
commit193a26b3f123b7dd30ebd12b4034cbf3c97849d9 (patch)
treefe8eddffd0fff86be9b0771e3da62c829901911e
parent8efca3f350305262a51d494b43f0f2248944fbb3 (diff)
downloadkipi-plugins-193a26b3f123b7dd30ebd12b4034cbf3c97849d9.tar.gz
kipi-plugins-193a26b3f123b7dd30ebd12b4034cbf3c97849d9.zip
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit fb720946cf074451cbd8a98cf81de2dd1f77d7b8)
-rw-r--r--kipi-plugins/acquireimages/plugin_acquireimages.cpp2
-rw-r--r--kipi-plugins/acquireimages/screenshotdialog.cpp2
-rw-r--r--kipi-plugins/batchprocessimages/plugin_batchprocessimages.cpp2
-rw-r--r--kipi-plugins/jpeglossless/plugin_jpeglossless.cpp6
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<TQT_BASE_OBJECT_NAME*>(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<TQT_BASE_OBJECT_NAME*>(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<TQT_BASE_OBJECT_NAME*>(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<TQT_BASE_OBJECT_NAME*>(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 <b>cannot</b> be undone.</p>")))
return;
- TQString from(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name());
+ TQString from(TQT_TQOBJECT(sender())->name());
m_total = items.count();
m_current = 0;