From 0a05b258faf9126cda33e19324126beb1975b19c Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 2 Apr 2011 23:45:34 +0000 Subject: Change remaining kdebase inherits() and similar methods to use new object name define strings git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1226910 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kate/app/katemdi.cpp | 2 +- kate/app/kateviewspacecontainer.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'kate') diff --git a/kate/app/katemdi.cpp b/kate/app/katemdi.cpp index c01d9c137..d214def27 100644 --- a/kate/app/katemdi.cpp +++ b/kate/app/katemdi.cpp @@ -256,7 +256,7 @@ bool ToolView::visible () const void ToolView::childEvent ( TQChildEvent *ev ) { // set the widget to be focus proxy if possible - if (ev->inserted() && ev->child() && TQT_TQOBJECT(ev->child())->qt_cast("TQWidget")) { + if (ev->inserted() && ev->child() && TQT_TQOBJECT(ev->child())->qt_cast(TQWIDGET_OBJECT_NAME_STRING)) { setFocusProxy (::tqqt_cast(TQT_TQOBJECT(ev->child()))); } diff --git a/kate/app/kateviewspacecontainer.cpp b/kate/app/kateviewspacecontainer.cpp index 58686a45c..d92c5b6ab 100644 --- a/kate/app/kateviewspacecontainer.cpp +++ b/kate/app/kateviewspacecontainer.cpp @@ -450,7 +450,7 @@ void KateViewSpaceContainer::splitViewSpace( KateViewSpace* vs, TQValueList psizes; if ( ! isFirstTime ) - if ( TQSplitter *ps = static_cast(vs->tqparentWidget()->qt_cast("TQSplitter")) ) + if ( TQSplitter *ps = static_cast(vs->tqparentWidget()->qt_cast(TQSPLITTER_OBJECT_NAME_STRING)) ) psizes = ps->sizes(); Qt::Orientation o = isHoriz ? Qt::Vertical : Qt::Horizontal; @@ -471,7 +471,7 @@ void KateViewSpaceContainer::splitViewSpace( KateViewSpace* vs, s->moveToFirst( vsNew ); if (!isFirstTime) - if (TQSplitter *ps = static_cast(s->tqparentWidget()->qt_cast("TQSplitter")) ) + if (TQSplitter *ps = static_cast(s->tqparentWidget()->qt_cast(TQSPLITTER_OBJECT_NAME_STRING)) ) ps->setSizes( psizes ); s->show(); -- cgit v1.2.1