diff options
Diffstat (limited to 'ksirc/displayMgrMDI.cpp')
-rw-r--r-- | ksirc/displayMgrMDI.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ksirc/displayMgrMDI.cpp b/ksirc/displayMgrMDI.cpp index d554004a..ec488275 100644 --- a/ksirc/displayMgrMDI.cpp +++ b/ksirc/displayMgrMDI.cpp @@ -38,8 +38,8 @@ void DisplayMgrMDI::newTopLevel( TQWidget *w, bool show ) KSircTopLevel *t = static_cast<KSircTopLevel *>(w); connect(m_topLevel->tabWidget(), TQT_SIGNAL(currentChanged(TQWidget *)), t, TQT_SLOT(focusChange(TQWidget *))); } - if(w->inherits("KMainWindow")){ - KMainWindow *t = static_cast<KMainWindow *>(w); + if(w->inherits("TDEMainWindow")){ + TDEMainWindow *t = static_cast<TDEMainWindow *>(w); TQMenuBar *cmenu = t->menuBar(); if(cmenu){ @@ -60,11 +60,11 @@ void DisplayMgrMDI::newTopLevel( TQWidget *w, bool show ) TQPopupMenu *sm = new TQPopupMenu(t, "settings" ); - KToggleAction *showmenu = KStdAction::showMenubar( 0, 0, t->actionCollection() ); + TDEToggleAction *showmenu = KStdAction::showMenubar( 0, 0, t->actionCollection() ); showmenu->plug( sm ); connect( showmenu, TQT_SIGNAL(toggled(bool)), cmenu, TQT_SLOT(setShown(bool)) ); - KSelectAction *selectTabbar = new KSelectAction(i18n("&Tab Bar"), 0, this, "tabbar" ); + TDESelectAction *selectTabbar = new TDESelectAction(i18n("&Tab Bar"), 0, this, "tabbar" ); TQStringList tabbaritems; tabbaritems << i18n("&Top") << i18n("&Bottom"); selectTabbar->setItems(tabbaritems); @@ -72,7 +72,7 @@ void DisplayMgrMDI::newTopLevel( TQWidget *w, bool show ) selectTabbar->plug( sm ); connect( selectTabbar, TQT_SIGNAL(activated(int)), this, TQT_SLOT(setTabPosition(int)) ); - KToggleAction *showfull = KStdAction::fullScreen( 0, 0, t->actionCollection(), t ); + TDEToggleAction *showfull = KStdAction::fullScreen( 0, 0, t->actionCollection(), t ); showfull->plug( sm ); connect( showfull, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setFullScreen(bool)) ); @@ -185,7 +185,7 @@ void DisplayMgrMDI::reparentReq() kdDebug(5008) << "Kapp says no widget has focus!" << endl; o = TQT_TQWIDGET(kapp->activeWindow()); - if(o->inherits("KMainWindow") == false) + if(o->inherits("TDEMainWindow") == false) return; s = o; @@ -199,7 +199,7 @@ void DisplayMgrMDI::reparentReq() while(s->parentWidget()){ kdDebug(5008) << "Got a: " << s->className() << endl; s = s->parentWidget(); - if(s->inherits("KMainWindow")) + if(s->inherits("TDEMainWindow")) break; } @@ -208,7 +208,7 @@ void DisplayMgrMDI::reparentReq() // TQWidget *s = m_topLevel->tabWidget()->currentPage(); can't do this since you can never reattach if(s){ - KMainWindow *kst = static_cast<KMainWindow *>(s); + TDEMainWindow *kst = static_cast<TDEMainWindow *>(s); kdDebug(5008) << "Top is: " << kst->name("none give") <<endl; TQMenuData *tmenu = kst->menuBar(); @@ -238,7 +238,7 @@ MDITopLevel *DisplayMgrMDI::topLevel() m_topLevel = new MDITopLevel(0x0, "MDITopLevel"); m_topLevel->show(); - KAccel *a = new KAccel( m_topLevel ); + TDEAccel *a = new TDEAccel( m_topLevel ); a->insert( "cycle left", i18n("Cycle left"), TQString(), ALT+Key_Left, ALT+Key_Left, this, TQT_SLOT(slotCycleTabsLeft()) ); a->insert( "cycle right", i18n("Cycle right"), TQString(), ALT+Key_Right, ALT+Key_Right, this, TQT_SLOT(slotCycleTabsRight()) ); } |