summaryrefslogtreecommitdiffstats
path: root/chalk
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-08-12 18:44:08 +0900
committerMichele Calgaro <[email protected]>2023-08-18 21:44:59 +0900
commit1607518b8c749b4195c5ab11b405f77001526a6a (patch)
tree89b8bc00c6b9625f6a4f061594f57f457d18a174 /chalk
parent64574118b7f71db7cb0a7f513a824dd51185b632 (diff)
downloadkoffice-1607518b8c749b4195c5ab11b405f77001526a6a.tar.gz
koffice-1607518b8c749b4195c5ab11b405f77001526a6a.zip
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit a7ea84c97639f635d798348432f355e3ac496a1d)
Diffstat (limited to 'chalk')
-rw-r--r--chalk/plugins/viewplugins/screenshot/ksnapshot.cpp2
-rw-r--r--chalk/ui/kobirdeyepanel.cpp10
2 files changed, 6 insertions, 6 deletions
diff --git a/chalk/plugins/viewplugins/screenshot/ksnapshot.cpp b/chalk/plugins/viewplugins/screenshot/ksnapshot.cpp
index b07b4d3e..7fb3668f 100644
--- a/chalk/plugins/viewplugins/screenshot/ksnapshot.cpp
+++ b/chalk/plugins/viewplugins/screenshot/ksnapshot.cpp
@@ -270,7 +270,7 @@ void KSnapshot::slotRegionGrabbed( const TQPixmap &pix )
bool KSnapshot::eventFilter( TQObject* o, TQEvent* e)
{
- if ( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(grabber) && e->type() == TQEvent::MouseButtonPress ) {
+ if ( o == grabber && e->type() == TQEvent::MouseButtonPress ) {
TQMouseEvent* me = (TQMouseEvent*) e;
if ( TQWidget::mouseGrabber() != grabber )
return false;
diff --git a/chalk/ui/kobirdeyepanel.cpp b/chalk/ui/kobirdeyepanel.cpp
index 46e0a585..ee784efa 100644
--- a/chalk/ui/kobirdeyepanel.cpp
+++ b/chalk/ui/kobirdeyepanel.cpp
@@ -307,15 +307,15 @@ void KoBirdEyePanel::updateVisibleArea()
bool KoBirdEyePanel::eventFilter(TQObject* o, TQEvent* ev)
{
- if (TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_page->view) && ev->type() == TQEvent::Resize) {
+ if (o == m_page->view && ev->type() == TQEvent::Resize) {
resizeViewEvent(TQT_TQRESIZEEVENT(ev)->size());
}
- if (TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_page->view) && ev->type() == TQEvent::Paint) {
+ if (o == m_page->view && ev->type() == TQEvent::Paint) {
paintViewEvent(TQT_TQPAINTEVENT(ev));
}
- if (TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_page->view) && ev->type() == TQEvent::MouseMove) {
+ if (o == m_page->view && ev->type() == TQEvent::MouseMove) {
TQMouseEvent* me = (TQMouseEvent*)ev;
TQPoint thumbnailPos = viewToThumbnail(me->pos());
@@ -329,7 +329,7 @@ bool KoBirdEyePanel::eventFilter(TQObject* o, TQEvent* ev)
return true;
}
- if (TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_page->view) && ev->type() == TQEvent::MouseButtonPress) {
+ if (o == m_page->view && ev->type() == TQEvent::MouseButtonPress) {
TQMouseEvent* me = (TQMouseEvent*)ev;
TQPoint thumbnailPos = viewToThumbnail(me->pos());
@@ -341,7 +341,7 @@ bool KoBirdEyePanel::eventFilter(TQObject* o, TQEvent* ev)
return true;
}
- if (TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_page->view) && ev->type() == TQEvent::MouseButtonRelease) {
+ if (o == m_page->view && ev->type() == TQEvent::MouseButtonRelease) {
TQMouseEvent* me = (TQMouseEvent*)ev;