summaryrefslogtreecommitdiffstats
path: root/lib/kofficecore/KoContainerHandler.cpp
diff options
context:
space:
mode:
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);