From f537c21b68e08f649b1b297bce8f3904603137e0 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 15:11:21 -0600 Subject: Rename a number of classes to enhance compatibility with KDE4 --- konqueror/konq_guiclients.cc | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'konqueror/konq_guiclients.cc') diff --git a/konqueror/konq_guiclients.cc b/konqueror/konq_guiclients.cc index 94aaf8ba1..ffd45fe89 100644 --- a/konqueror/konq_guiclients.cc +++ b/konqueror/konq_guiclients.cc @@ -134,9 +134,9 @@ PopupMenuGUIClient::~PopupMenuGUIClient() { } -KAction *PopupMenuGUIClient::action( const TQDomElement &element ) const +TDEAction *PopupMenuGUIClient::action( const TQDomElement &element ) const { - KAction *res = KXMLGUIClient::action( element ); + TDEAction *res = KXMLGUIClient::action( element ); if ( !res ) res = m_mainWindow->action( element ); @@ -156,7 +156,7 @@ void PopupMenuGUIClient::addEmbeddingService( TQDomElement &menu, int idx, const action.setAttribute( "group", "preview" ); - (void)new KAction( name, service->pixmap( KIcon::Small ), 0, + (void)new TDEAction( name, service->pixmap( KIcon::Small ), 0, TQT_TQOBJECT(m_mainWindow), TQT_SLOT( slotOpenEmbedded() ), actionCollection(), actName ); } @@ -195,7 +195,7 @@ ToggleViewGUIClient::ToggleViewGUIClient( KonqMainWindow *mainWindow ) TQString description = i18n( "Show %1" ).arg( (*cIt)->name() ); TQString name = (*cIt)->desktopEntryName(); //kdDebug(1202) << "ToggleViewGUIClient: name=" << name << endl; - KToggleAction *action = new KToggleAction( description, 0, mainWindow->actionCollection(), name.latin1() ); + TDEToggleAction *action = new TDEToggleAction( description, 0, mainWindow->actionCollection(), name.latin1() ); action->setCheckedState( i18n( "Hide %1" ).arg( (*cIt)->name() ) ); // HACK @@ -222,11 +222,11 @@ ToggleViewGUIClient::~ToggleViewGUIClient() { } -TQPtrList ToggleViewGUIClient::actions() const +TQPtrList ToggleViewGUIClient::actions() const { - TQPtrList res; + TQPtrList res; - TQDictIterator it( m_actions ); + TQDictIterator it( m_actions ); for (; it.current(); ++it ) res.append( it.current() ); @@ -322,11 +322,11 @@ void ToggleViewGUIClient::slotViewAdded( KonqView *view ) { TQString name = view->service()->desktopEntryName(); - KAction *action = m_actions[ name ]; + TDEAction *action = m_actions[ name ]; if ( action ) { - static_cast( action )->setChecked( true ); + static_cast( action )->setChecked( true ); saveConfig( true, name ); // KonqView::isToggleView() is not set yet.. so just check for the orientation @@ -351,11 +351,11 @@ void ToggleViewGUIClient::slotViewRemoved( KonqView *view ) { TQString name = view->service()->desktopEntryName(); - KAction *action = m_actions[ name ]; + TDEAction *action = m_actions[ name ]; if ( action ) { - static_cast( action )->setChecked( false ); + static_cast( action )->setChecked( false ); saveConfig( false, name ); } } -- cgit v1.2.1