diff options
author | Timothy Pearson <[email protected]> | 2013-02-01 15:11:21 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-02-01 15:11:21 -0600 |
commit | f537c21b68e08f649b1b297bce8f3904603137e0 (patch) | |
tree | fb33065387509dea898c90022ddec9c3f8ede86d /kate/app/katemdi.cpp | |
parent | dc5f267664506a312203c26bfe9001a448b0bb0f (diff) | |
download | tdebase-f537c21b68e08f649b1b297bce8f3904603137e0.tar.gz tdebase-f537c21b68e08f649b1b297bce8f3904603137e0.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kate/app/katemdi.cpp')
-rw-r--r-- | kate/app/katemdi.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kate/app/katemdi.cpp b/kate/app/katemdi.cpp index 8a001cdeb..6138915ab 100644 --- a/kate/app/katemdi.cpp +++ b/kate/app/katemdi.cpp @@ -66,9 +66,9 @@ int Splitter::idAfter ( TQWidget * w ) const //BEGIN TOGGLETOOLVIEWACTION -ToggleToolViewAction::ToggleToolViewAction ( const TQString& text, const KShortcut& cut, ToolView *tv, +ToggleToolViewAction::ToggleToolViewAction ( const TQString& text, const TDEShortcut& cut, ToolView *tv, TQObject* parent, const char* name ) - : KToggleAction(text,cut,parent,name) + : TDEToggleAction(text,cut,parent,name) , m_tv(tv) { connect(this,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotToggled(bool))); @@ -137,8 +137,8 @@ GUIClient::GUIClient ( MainWindow *mw ) if (actionCollection()->kaccel()==0) actionCollection()->setWidget(m_mw); - m_toolMenu = new KActionMenu(i18n("Tool &Views"),actionCollection(),"kate_mdi_toolview_menu"); - m_showSidebarsAction = new KToggleAction( i18n("Show Side&bars"), + m_toolMenu = new TDEActionMenu(i18n("Tool &Views"),actionCollection(),"kate_mdi_toolview_menu"); + m_showSidebarsAction = new TDEToggleAction( i18n("Show Side&bars"), CTRL|ALT|SHIFT|Key_F, actionCollection(), "kate_mdi_sidebar_visibility" ); m_showSidebarsAction->setCheckedState(i18n("Hide Side&bars")); m_showSidebarsAction->setChecked( m_mw->sidebarsVisible() ); @@ -146,7 +146,7 @@ GUIClient::GUIClient ( MainWindow *mw ) m_mw, TQT_SLOT( setSidebarsVisible( bool ) ) ); m_toolMenu->insert( m_showSidebarsAction ); - m_toolMenu->insert( new KActionSeparator( m_toolMenu ) ); + m_toolMenu->insert( new TDEActionSeparator( m_toolMenu ) ); // read shortcuts actionCollection()->readShortcutSettings( "Shortcuts", kapp->config() ); @@ -166,14 +166,14 @@ void GUIClient::registerToolView (ToolView *tv) TQString aname = TQString("kate_mdi_toolview_") + tv->id; // try to read the action shortcut - KShortcut sc; + TDEShortcut sc; TDEConfig *cfg = kapp->config(); TQString _grp = cfg->group(); cfg->setGroup("Shortcuts"); - sc = KShortcut( cfg->readEntry( aname, "" ) ); + sc = TDEShortcut( cfg->readEntry( aname, "" ) ); cfg->setGroup( _grp ); - KToggleAction *a = new ToggleToolViewAction(i18n("Show %1").arg(tv->text), + TDEToggleAction *a = new ToggleToolViewAction(i18n("Show %1").arg(tv->text), sc,tv, actionCollection(), aname.latin1() ); a->setCheckedState(TQString(i18n("Hide %1").arg(tv->text))); @@ -188,7 +188,7 @@ void GUIClient::registerToolView (ToolView *tv) void GUIClient::unregisterToolView (ToolView *tv) { - KAction *a = m_toolToAction[tv]; + TDEAction *a = m_toolToAction[tv]; if (!a) return; @@ -214,7 +214,7 @@ void GUIClient::updateActions() unplugActionList( actionListName ); - TQPtrList<KAction> addList; + TQPtrList<TDEAction> addList; addList.append(m_toolMenu); plugActionList( actionListName, addList ); @@ -460,7 +460,7 @@ bool Sidebar::eventFilter(TQObject *obj, TQEvent *ev) if (w) { - KPopupMenu *p = new KPopupMenu (this); + TDEPopupMenu *p = new TDEPopupMenu (this); p->insertTitle(SmallIcon("view_remove"), i18n("Behavior"), 50); |