summaryrefslogtreecommitdiffstats
path: root/twin
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-08-12 18:46:35 +0900
committerMichele Calgaro <[email protected]>2023-08-18 19:13:36 +0900
commit5cfda35559d971762794b1c8e294d037c09c63f3 (patch)
tree567400ec90a083f3fcb02cde2ed0d779d861da79 /twin
parent7c193f33d78ab79d2811a60c5190abdc1fa95c03 (diff)
downloadtdebase-5cfda35559d971762794b1c8e294d037c09c63f3.tar.gz
tdebase-5cfda35559d971762794b1c8e294d037c09c63f3.zip
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 0fc56f21d45249a473d20555ff3071d3b16bee54)
Diffstat (limited to 'twin')
-rw-r--r--twin/clients/b2/b2client.cpp2
-rw-r--r--twin/clients/keramik/keramik.cpp2
-rw-r--r--twin/clients/test/test.cpp2
-rw-r--r--twin/events.cpp4
-rw-r--r--twin/geometry.cpp2
-rw-r--r--twin/kcmtwin/twinrules/detectwidget.cpp2
-rw-r--r--twin/lib/kcommondecoration.cpp2
7 files changed, 8 insertions, 8 deletions
diff --git a/twin/clients/b2/b2client.cpp b/twin/clients/b2/b2client.cpp
index 6c81660ee..49391e923 100644
--- a/twin/clients/b2/b2client.cpp
+++ b/twin/clients/b2/b2client.cpp
@@ -1179,7 +1179,7 @@ bool B2Client::drawbound(const TQRect& geom, bool clear)
bool B2Client::eventFilter(TQObject *o, TQEvent *e)
{
- if (TQT_BASE_OBJECT(o) != TQT_BASE_OBJECT(widget()))
+ if (o != widget())
return false;
switch (e->type()) {
case TQEvent::Resize:
diff --git a/twin/clients/keramik/keramik.cpp b/twin/clients/keramik/keramik.cpp
index ded50a9d2..446199fa7 100644
--- a/twin/clients/keramik/keramik.cpp
+++ b/twin/clients/keramik/keramik.cpp
@@ -1796,7 +1796,7 @@ TQSize KeramikClient::minimumSize() const
bool KeramikClient::eventFilter( TQObject* o, TQEvent* e )
{
- if ( TQT_BASE_OBJECT(o) != TQT_BASE_OBJECT(widget()) )
+ if ( o != widget() )
return false;
switch ( e->type() )
diff --git a/twin/clients/test/test.cpp b/twin/clients/test/test.cpp
index e01d1d98e..ebfb00df1 100644
--- a/twin/clients/test/test.cpp
+++ b/twin/clients/test/test.cpp
@@ -100,7 +100,7 @@ TQSize Decoration::minimumSize() const
bool Decoration::eventFilter( TQObject* o, TQEvent* e )
{
- if( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(widget()))
+ if( o == widget())
{
switch( e->type())
{
diff --git a/twin/events.cpp b/twin/events.cpp
index c24d81c6f..e2e6b8d60 100644
--- a/twin/events.cpp
+++ b/twin/events.cpp
@@ -1079,7 +1079,7 @@ int qtToX11State( TQt::ButtonState state )
// for the decoration window cannot be (easily) intercepted as X11 events
bool Client::eventFilter( TQObject* o, TQEvent* e )
{
- if (TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(shadowWidget))
+ if (o == shadowWidget)
{
if (e->type() == TQEvent::MouseButtonRelease)
{
@@ -1291,7 +1291,7 @@ bool Client::eventFilter( TQObject* o, TQEvent* e )
}
}
if( decoration == NULL
- || TQT_BASE_OBJECT(o) != TQT_BASE_OBJECT(decoration->widget()))
+ || o != decoration->widget())
return false;
if( e->type() == TQEvent::MouseButtonPress )
{
diff --git a/twin/geometry.cpp b/twin/geometry.cpp
index 562e3cda0..2f9988e6b 100644
--- a/twin/geometry.cpp
+++ b/twin/geometry.cpp
@@ -2288,7 +2288,7 @@ class EatAllPaintEvents
{
protected:
virtual bool eventFilter( TQObject* o, TQEvent* e )
- { return e->type() == TQEvent::Paint && TQT_BASE_OBJECT(o) != TQT_BASE_OBJECT(geometryTip); }
+ { return e->type() == TQEvent::Paint && o != geometryTip; }
};
static EatAllPaintEvents* eater = 0;
diff --git a/twin/kcmtwin/twinrules/detectwidget.cpp b/twin/kcmtwin/twinrules/detectwidget.cpp
index a0f017f7d..9dbb29441 100644
--- a/twin/kcmtwin/twinrules/detectwidget.cpp
+++ b/twin/kcmtwin/twinrules/detectwidget.cpp
@@ -170,7 +170,7 @@ void DetectDialog::selectWindow()
bool DetectDialog::eventFilter( TQObject* o, TQEvent* e )
{
- if( TQT_BASE_OBJECT(o) != TQT_BASE_OBJECT(grabber) )
+ if( o != grabber )
return false;
if( e->type() != TQEvent::MouseButtonRelease )
return false;
diff --git a/twin/lib/kcommondecoration.cpp b/twin/lib/kcommondecoration.cpp
index 0ada039b0..e1c74d5bc 100644
--- a/twin/lib/kcommondecoration.cpp
+++ b/twin/lib/kcommondecoration.cpp
@@ -844,7 +844,7 @@ void KCommonDecoration::updateWindowShape()
bool KCommonDecoration::eventFilter( TQObject* o, TQEvent* e )
{
- if( TQT_BASE_OBJECT(o) != TQT_BASE_OBJECT(widget()))
+ if( o != widget())
return false;
switch( e->type())
{