summaryrefslogtreecommitdiffstats
path: root/kbabel/commonui/context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbabel/commonui/context.cpp')
-rw-r--r--kbabel/commonui/context.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kbabel/commonui/context.cpp b/kbabel/commonui/context.cpp
index 3d22cb2a..a0a83351 100644
--- a/kbabel/commonui/context.cpp
+++ b/kbabel/commonui/context.cpp
@@ -278,7 +278,7 @@ bool SourceContext::loadPart()
_view=0;
return false;
}
- _part = static_cast<KTextEditor::Document *>( factory->create( TQT_TQOBJECT(this), 0, "KTextEditor::Document" ) );
+ _part = static_cast<KTextEditor::Document *>( factory->create( this, 0, "KTextEditor::Document" ) );
if( !_part )
{
@@ -289,8 +289,8 @@ bool SourceContext::loadPart()
return false;
}
_view = _part->createView( this, 0 );
- _layout->addWidget(static_cast<TQWidget *>(_view), 1);
- static_cast<TQWidget *>(_view)->show();
+ _layout->addWidget(_view, 1);
+ _view->show();
return true;
}