summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-08-12 18:41:22 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-08-13 22:55:45 +0900
commita248cedfe9f70ba695aea349fa9e2dddbcb589d8 (patch)
tree8b47cfdf9c9dc5f03f5938b9ddc914371913588a
parentff1ab64a5c1be7d4d7642da6282808ac19d526c7 (diff)
downloadgwenview-a248cedfe9f70ba695aea349fa9e2dddbcb589d8.tar.gz
gwenview-a248cedfe9f70ba695aea349fa9e2dddbcb589d8.zip
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit eef3d8d98fd405498799b69174b1ce642188eee3)
-rw-r--r--src/gvcore/imageloader.cpp2
-rw-r--r--src/gvcore/imageviewcontroller.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gvcore/imageloader.cpp b/src/gvcore/imageloader.cpp
index 8b2c546..bb5d68c 100644
--- a/src/gvcore/imageloader.cpp
+++ b/src/gvcore/imageloader.cpp
@@ -883,7 +883,7 @@ void ImageLoader::release( const TQObject* owner ) {
}
void ImageLoader::ownerDestroyed() {
- deref( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())));
+ deref( sender() );
}
//---------------------------------------------------------------------
diff --git a/src/gvcore/imageviewcontroller.cpp b/src/gvcore/imageviewcontroller.cpp
index f97c847..008b3d4 100644
--- a/src/gvcore/imageviewcontroller.cpp
+++ b/src/gvcore/imageviewcontroller.cpp
@@ -425,7 +425,7 @@ bool ImageViewController::eventFilter(TQObject* object, TQEvent* event) {
bool isAChildOfStack=false;
TQObject* parentObject;
for (parentObject=object->parent(); parentObject; parentObject=parentObject->parent()) {
- if (TQT_BASE_OBJECT(parentObject)==TQT_BASE_OBJECT(d->mStack)) {
+ if (parentObject==d->mStack) {
isAChildOfStack=true;
break;
}