From 57e0ed66347db15cb1cd66488f095107e7772ad9 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 18 Nov 2023 16:44:23 +0900 Subject: Replace various strings '#define'd in tqtinterface Signed-off-by: Michele Calgaro --- tdemdi/tdemdi/dockcontainer.cpp | 6 +++--- tdemdi/tdemdi/guiclient.cpp | 2 +- tdemdi/tdemdi/mainwindow.cpp | 6 +++--- tdemdi/tdemdi/toolviewaccessor.cpp | 2 +- tdemdi/tdemdidockcontainer.cpp | 6 +++--- tdemdi/tdemdiguiclient.cpp | 2 +- tdemdi/tdemdimainfrm.cpp | 8 ++++---- tdemdi/tdemditoolviewaccessor.cpp | 2 +- 8 files changed, 17 insertions(+), 17 deletions(-) (limited to 'tdemdi') diff --git a/tdemdi/tdemdi/dockcontainer.cpp b/tdemdi/tdemdi/dockcontainer.cpp index f89867d73..ff6e41710 100644 --- a/tdemdi/tdemdi/dockcontainer.cpp +++ b/tdemdi/tdemdi/dockcontainer.cpp @@ -246,7 +246,7 @@ bool DockContainer::eventFilter( TQObject *obj, TQEvent *event ) switch ( event->type() ){ case TQEvent::MouseButtonPress: { - KDockWidget * w=m_revMap[tqt_dynamic_cast(obj)->id()]; + KDockWidget * w=m_revMap[dynamic_cast(obj)->id()]; if (!w) { kdDebug()<<"NoWidget"<(sender()); + const KDockButton_Private *btn=dynamic_cast(sender()); kdDebug(760)<<"DockContainer::changeOverlapMode: button=="<isTabRaised(oldtab)) { m_tb->setTab(oldtab,false); tabClicked(oldtab); - // KMDI::MainWindow *mainFrm = tqt_dynamic_cast(m_mainWin); + // KMDI::MainWindow *mainFrm = dynamic_cast(m_mainWin); // if (mainFrm && mainFrm->activeWindow() ) // TODO // mainFrm->activeWindow()->setFocus(); diff --git a/tdemdi/tdemdi/guiclient.cpp b/tdemdi/tdemdi/guiclient.cpp index 92a24acd5..cfc90a9d2 100644 --- a/tdemdi/tdemdi/guiclient.cpp +++ b/tdemdi/tdemdi/guiclient.cpp @@ -146,7 +146,7 @@ void GUIClient::addToolView(KMDI::ToolViewAccessor* mtva) cfg->setGroup( _grp ); TDEAction *a=new ToggleToolViewAction(i18n("Show %1").arg(mtva->wrappedWidget()->caption()), - /*TQString::null*/sc,tqt_dynamic_cast(mtva->wrapperWidget()), + /*TQString::null*/sc,dynamic_cast(mtva->wrapperWidget()), m_mdiMainFrm,actionCollection(), aname.latin1() ); ((ToggleToolViewAction*)a)->setCheckedState(TQString(i18n("Hide %1").arg(mtva->wrappedWidget()->caption()))); diff --git a/tdemdi/tdemdi/mainwindow.cpp b/tdemdi/tdemdi/mainwindow.cpp index 4f23e3a9e..f655e5b3d 100644 --- a/tdemdi/tdemdi/mainwindow.cpp +++ b/tdemdi/tdemdi/mainwindow.cpp @@ -327,7 +327,7 @@ void MainWindow::setToolViewStyle(int flag) bool toolviewExists = false; TQMap::Iterator it; for (it = m_toolViews->begin(); it != m_toolViews->end(); ++it) { - KDockWidget *dockWidget = tqt_dynamic_cast(it.data()->wrapperWidget()); + KDockWidget *dockWidget = dynamic_cast(it.data()->wrapperWidget()); if (dockWidget) { if (flag == KMDI::IconOnly) { @@ -373,7 +373,7 @@ void MainWindow::dockToolViewsIntoContainers(TQPtrList& widgetsToRe void MainWindow::findToolViewsDockedToMain(TQPtrList* list,KDockWidget::DockPosition dprtmw) { KDockWidget *mainDock=getMainDockWidget(); if (mainDock->parentDockTabGroup()) { - mainDock=tqt_dynamic_cast(mainDock->parentDockTabGroup()->parent()); + mainDock=dynamic_cast(mainDock->parentDockTabGroup()->parent()); // FIXME: will likely crash below due to unchecked cast } @@ -384,7 +384,7 @@ void MainWindow::findToolViewsDockedToMain(TQPtrList* list,KDockWid } if (widget) { - KDockTabGroup *tg=tqt_dynamic_cast(widget-> + KDockTabGroup *tg=dynamic_cast(widget-> getWidget()); if (tg) { kdDebug(760)<<"KDockTabGroup found"<inherits("KDockWidget")) { - d->widgetContainer=tqt_dynamic_cast(widgetToWrap); + d->widgetContainer=dynamic_cast(widgetToWrap); d->widget=d->widgetContainer->getWidget(); } else { d->widget=widgetToWrap; diff --git a/tdemdi/tdemdidockcontainer.cpp b/tdemdi/tdemdidockcontainer.cpp index 010974666..5808ae82d 100644 --- a/tdemdi/tdemdidockcontainer.cpp +++ b/tdemdi/tdemdidockcontainer.cpp @@ -252,7 +252,7 @@ bool KMdiDockContainer::eventFilter( TQObject *obj, TQEvent *event ) { case TQEvent::MouseButtonPress: { - KMultiTabBarTab* kmtbTab = tqt_dynamic_cast( obj ); + KMultiTabBarTab* kmtbTab = dynamic_cast( obj ); if ( !kmtbTab ) { kdDebug(760) << k_funcinfo << "Got a mouse button press but we have no tab" << endl; @@ -332,7 +332,7 @@ void KMdiDockContainer::showWidget( KDockWidget *w ) void KMdiDockContainer::changeOverlapMode() { - const KDockButton_Private * btn = tqt_dynamic_cast( sender() ); + const KDockButton_Private * btn = dynamic_cast( sender() ); if ( !btn ) return ; @@ -794,7 +794,7 @@ void KMdiDockContainer::toggle() kdDebug( 760 ) << k_funcinfo << "lowering tab" << endl; m_tb->setTab( oldtab, false ); tabClicked( oldtab ); - KMdiMainFrm *mainFrm = tqt_dynamic_cast( m_mainWin ); + KMdiMainFrm *mainFrm = dynamic_cast( m_mainWin ); if ( mainFrm && mainFrm->activeWindow() ) mainFrm->activeWindow()->setFocus(); } diff --git a/tdemdi/tdemdiguiclient.cpp b/tdemdi/tdemdiguiclient.cpp index b4c4bc593..34fa73b8a 100644 --- a/tdemdi/tdemdiguiclient.cpp +++ b/tdemdi/tdemdiguiclient.cpp @@ -258,7 +258,7 @@ void KMDIGUIClient::addToolView( KMdiToolViewAccessor* mtva ) sc = TDEShortcut( cfg->readEntry( aname, "" ) ); cfg->setGroup( _grp ); TDEAction *a = new ToggleToolViewAction( i18n( "Show %1" ).arg( mtva->wrappedWidget() ->caption() ), - /*TQString::null*/sc, tqt_dynamic_cast( mtva->wrapperWidget() ), + /*TQString::null*/sc, dynamic_cast( mtva->wrapperWidget() ), m_mdiMainFrm, actionCollection(), aname.latin1() ); #if KDE_IS_VERSION(3,2,90) diff --git a/tdemdi/tdemdimainfrm.cpp b/tdemdi/tdemdimainfrm.cpp index 09b5f7382..ab59f63df 100644 --- a/tdemdi/tdemdimainfrm.cpp +++ b/tdemdi/tdemdimainfrm.cpp @@ -1777,7 +1777,7 @@ void KMdiMainFrm::setToolviewStyle( int flag ) TQMap::Iterator it; for ( it = m_pToolViews->begin(); it != m_pToolViews->end(); ++it ) { - KDockWidget *dockWidget = tqt_dynamic_cast( it.data()->wrapperWidget() ); + KDockWidget *dockWidget = dynamic_cast( it.data()->wrapperWidget() ); if ( dockWidget ) { switch ( flag ) @@ -1886,7 +1886,7 @@ void KMdiMainFrm::findToolViewsDockedToMain( TQPtrList* list, KDock KDockWidget* mainDock = getMainDockWidget(); if ( mainDock->parentDockTabGroup() ) { - mainDock = tqt_dynamic_cast( mainDock->parentDockTabGroup()->parent() ); + mainDock = dynamic_cast( mainDock->parentDockTabGroup()->parent() ); // FIXME: will likely crash below due to unchecked cast } @@ -1903,7 +1903,7 @@ void KMdiMainFrm::findToolViewsDockedToMain( TQPtrList* list, KDock if ( widget ) { - KDockTabGroup* tg = tqt_dynamic_cast( widget->getWidget() ); + KDockTabGroup* tg = dynamic_cast( widget->getWidget() ); if ( tg ) { kdDebug(760) << k_funcinfo << "KDockTabGroup found" << endl; @@ -2118,7 +2118,7 @@ void KMdiMainFrm::finishIDEAlMode( bool full ) TQStringList KMdiMainFrm::prepareIdealToTabs( KDockWidget* container ) { - KDockContainer * pDW = tqt_dynamic_cast( container->getWidget() ); + KDockContainer * pDW = dynamic_cast( container->getWidget() ); TQStringList widgetNames = ( ( KMdiDockContainer* ) pDW ) ->containedWidgets(); for ( TQStringList::iterator it = widgetNames.begin();it != widgetNames.end();++it ) { diff --git a/tdemdi/tdemditoolviewaccessor.cpp b/tdemdi/tdemditoolviewaccessor.cpp index f6b6ddae0..187e89d98 100644 --- a/tdemdi/tdemditoolviewaccessor.cpp +++ b/tdemdi/tdemditoolviewaccessor.cpp @@ -36,7 +36,7 @@ KMdiToolViewAccessor::KMdiToolViewAccessor( KMdiMainFrm *parent, TQWidget *widge d = new KMdiToolViewAccessorPrivate(); if ( widgetToWrap->inherits( "KDockWidget" ) ) { - d->widgetContainer = tqt_dynamic_cast( widgetToWrap ); + d->widgetContainer = dynamic_cast( widgetToWrap ); d->widget = d->widgetContainer->getWidget(); } else -- cgit v1.2.1