summaryrefslogtreecommitdiffstats
path: root/lib/kofficecore/KoContainerHandler.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-12-14 21:19:12 +0900
committerMichele Calgaro <[email protected]>2023-12-24 16:56:48 +0900
commit757d80a919132cf72773928d53d100d22358de34 (patch)
tree78f1145fbd227d1135514b40e66e2e4bcbe3fcce /lib/kofficecore/KoContainerHandler.cpp
parent9abcf51de91242d1ab70230ba46abd2108416edf (diff)
downloadkoffice-757d80a919132cf72773928d53d100d22358de34.tar.gz
koffice-757d80a919132cf72773928d53d100d22358de34.zip
Remove various '#define' strings - part 6
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 3aab8aa05b954b80e336517f93463a9b5f50f3d6)
Diffstat (limited to 'lib/kofficecore/KoContainerHandler.cpp')
-rw-r--r--lib/kofficecore/KoContainerHandler.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/kofficecore/KoContainerHandler.cpp b/lib/kofficecore/KoContainerHandler.cpp
index 74c49a7e..e11654e9 100644
--- a/lib/kofficecore/KoContainerHandler.cpp
+++ b/lib/kofficecore/KoContainerHandler.cpp
@@ -71,7 +71,7 @@ public:
KoPartResizeHandler::KoPartResizeHandler( TQWidget* widget, const TQWMatrix& matrix, KoView* view, KoChild* child,
KoChild::Gadget gadget, const TQPoint& point )
- : KoEventHandler( TQT_TQOBJECT(widget) )
+ : KoEventHandler( widget )
{
child->lock();
d=new KoPartResizeHandlerPrivate(matrix, view, child, gadget, point);
@@ -230,7 +230,7 @@ public:
KoPartMoveHandler::KoPartMoveHandler( TQWidget* widget, const TQWMatrix& matrix, KoView* view, KoChild* child,
const TQPoint& point )
- : KoEventHandler( TQT_TQOBJECT(widget) )
+ : KoEventHandler( widget )
{
child->lock();
d=new KoPartMoveHandlerPrivate(matrix, view, child, point);
@@ -274,7 +274,7 @@ bool KoPartMoveHandler::eventFilter( TQObject*, TQEvent* ev )
// -------------------------------------------------------
KoContainerHandler::KoContainerHandler( KoView* view, TQWidget* widget )
- : KoEventHandler( TQT_TQOBJECT(widget) )
+ : KoEventHandler( widget )
{
m_view = view;
}
@@ -312,19 +312,19 @@ bool KoContainerHandler::eventFilter( TQObject*, TQEvent* ev )
}
else if ( e->button() == TQt::LeftButton && gadget == KoChild::Move )
{
- (void)new KoPartMoveHandler( TQT_TQWIDGET(target()), m_view->matrix(), m_view, ch, pos );
+ (void)new KoPartMoveHandler( static_cast<TQWidget*>(target()), m_view->matrix(), m_view, ch, pos );
return true;
}
else if ( e->button() == TQt::LeftButton && gadget != KoChild::NoGadget )
{
- (void)new KoPartResizeHandler( TQT_TQWIDGET(target()), m_view->matrix(), m_view, ch, gadget, pos );
+ (void)new KoPartResizeHandler( static_cast<TQWidget*>(target()), m_view->matrix(), m_view, ch, gadget, pos );
return true;
}
return false;
}
else if ( ev->type() == TQEvent::MouseMove )
{
- TQWidget *targetWidget = TQT_TQWIDGET( target() );
+ TQWidget *targetWidget = static_cast<TQWidget*>( target() );
KoChild::Gadget gadget;
TQPoint pos;
TQMouseEvent *e=static_cast<TQMouseEvent*>(ev);