summaryrefslogtreecommitdiffstats
path: root/ksirc/displayMgrMDI.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:14:03 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:14:03 -0600
commit9c9412b30c54468adc9e506cc76c5d113fbf5056 (patch)
tree68a0c0d5bc770fc58596b8c5624cdf33d8625027 /ksirc/displayMgrMDI.cpp
parent2e53bd0b77676f879fad7baeecea5879bf496a7d (diff)
downloadtdenetwork-9c9412b30c54468adc9e506cc76c5d113fbf5056.tar.gz
tdenetwork-9c9412b30c54468adc9e506cc76c5d113fbf5056.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'ksirc/displayMgrMDI.cpp')
-rw-r--r--ksirc/displayMgrMDI.cpp18
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()) );
}