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 15:45:56 +0900
commitfb720946cf074451cbd8a98cf81de2dd1f77d7b8 (patch)
treea25fc3a174b05900890352a96ce263974a5b2c2c
parent811b9c6aeed16644b41dcc62dbdd7a2b1e5f9855 (diff)
downloadkipi-plugins-fb720946cf074451cbd8a98cf81de2dd1f77d7b8.tar.gz
kipi-plugins-fb720946cf074451cbd8a98cf81de2dd1f77d7b8.zip
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-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;