From 7d7b2c04e147670ed65c5be42de7b7b131122856 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 14 Aug 2011 01:31:16 +0000 Subject: Fix kdelibs FTBFS under Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1246982 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kmdi/kmdimainfrm.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kmdi/kmdimainfrm.cpp') diff --git a/kmdi/kmdimainfrm.cpp b/kmdi/kmdimainfrm.cpp index 46ba7870f..8fd8530f3 100644 --- a/kmdi/kmdimainfrm.cpp +++ b/kmdi/kmdimainfrm.cpp @@ -1899,7 +1899,7 @@ void KMdiMainFrm::findToolViewsDockedToMain( TQPtrList* list, KDock KDockWidget* widget = mainDock->findNearestDockWidget( dprtmw ); if ( widget && widget->parentDockTabGroup() ) { - widget = static_cast( widget->parentDockTabGroup() ->parent() ); + widget = static_cast( TQT_TQWIDGET(widget->parentDockTabGroup() ->parent()) ); if ( widget ) { @@ -1931,7 +1931,7 @@ void KMdiMainFrm::setupToolViewsForIDEALMode() KDockWidget *mainDock = getMainDockWidget(); KDockWidget *w = mainDock; if ( mainDock->parentDockTabGroup() ) - w = static_cast( mainDock->parentDockTabGroup()->parent() ); + w = static_cast( TQT_TQWIDGET(mainDock->parentDockTabGroup()->parent()) ); TQPtrList leftReparentWidgets; TQPtrList rightReparentWidgets; @@ -1939,7 +1939,7 @@ void KMdiMainFrm::setupToolViewsForIDEALMode() TQPtrList topReparentWidgets; if ( mainDock->parentDockTabGroup() ) - mainDock = static_cast( mainDock->parentDockTabGroup() ->parent() ); + mainDock = static_cast( TQT_TQWIDGET(mainDock->parentDockTabGroup() ->parent()) ); findToolViewsDockedToMain( &leftReparentWidgets, KDockWidget::DockLeft ); findToolViewsDockedToMain( &rightReparentWidgets, KDockWidget::DockRight ); @@ -2137,7 +2137,7 @@ void KMdiMainFrm::idealToolViewsToStandardTabs( TQStringList widgetNames, KDockW KDockWidget * mainDock = getMainDockWidget(); if ( mainDock->parentDockTabGroup() ) { - mainDock = static_cast( mainDock->parentDockTabGroup() ->parent() ); + mainDock = static_cast( TQT_TQWIDGET(mainDock->parentDockTabGroup() ->parent()) ); } if ( widgetNames.count() > 0 ) -- cgit v1.2.1