diff options
Diffstat (limited to 'ksirc/toplevel.cpp')
-rw-r--r-- | ksirc/toplevel.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/ksirc/toplevel.cpp b/ksirc/toplevel.cpp index beb96799..840987f9 100644 --- a/ksirc/toplevel.cpp +++ b/ksirc/toplevel.cpp @@ -121,7 +121,7 @@ KSircTopLevel::KSircTopLevel(KSircProcess *_proc, const KSircChannel &channelInf m_topic = TQString(); - TQCString kstl_name = TQCString(TQT_TQOBJECT(this)->name()) + "_" + "toplevel"; + TQCString kstl_name = TQCString(this->name()) + "_" + "toplevel"; setName(kstl_name); if(!m_channelInfo.channel().isEmpty()) { @@ -152,10 +152,10 @@ KSircTopLevel::KSircTopLevel(KSircProcess *_proc, const KSircChannel &channelInf connect(selector, TQT_SIGNAL(clicked()), this, TQT_SLOT(insertText())); selector->setFont(ksopts->defaultFont.family()); - file = new TQPopupMenu(this, TQCString(TQT_TQOBJECT(this)->name()) + "_popup_file"); + file = new TQPopupMenu(this, TQCString(this->name()) + "_popup_file"); file->setCheckable(true); - TDEAction *act = KStdAction::openNew( TQT_TQOBJECT(this), TQT_SLOT( newWindow() ), actionCollection() ); + TDEAction *act = KStdAction::openNew( this, TQT_SLOT( newWindow() ), actionCollection() ); act->plug( file ); file->insertItem(i18n("New Ser&ver..."), servercontroller::self(), TQT_SLOT(new_connection()), Key_F2); file->insertSeparator(); @@ -172,7 +172,7 @@ KSircTopLevel::KSircTopLevel(KSircProcess *_proc, const KSircChannel &channelInf beepitem = file->insertItem(i18n("N&otify on Change"), this, TQT_SLOT(toggleBeep()), CTRL + Key_P); file->setItemChecked(beepitem, ksopts->chan(m_channelInfo).beepOnMsg); - encodingAction = new TDESelectAction( i18n( "&Encoding" ), 0, TQT_TQOBJECT(this) ); + encodingAction = new TDESelectAction( i18n( "&Encoding" ), 0, this ); connect( encodingAction, TQT_SIGNAL( activated() ), this, TQT_SLOT( setEncoding() ) ); TQStringList encodings = TDEGlobal::charsets()->descriptiveEncodingNames(); @@ -208,7 +208,7 @@ KSircTopLevel::KSircTopLevel(KSircProcess *_proc, const KSircChannel &channelInf setEncoding(); file->insertSeparator(); - act = KStdAction::close( TQT_TQOBJECT(this), TQT_SLOT( terminate() ), actionCollection() ); + act = KStdAction::close( this, TQT_SLOT( terminate() ), actionCollection() ); act->plug( file ); kmenu = menuBar(); @@ -234,7 +234,7 @@ KSircTopLevel::KSircTopLevel(KSircProcess *_proc, const KSircChannel &channelInf connect( ksTopic, TQT_SIGNAL( topicChange( const TQString & ) ), this, TQT_SLOT( setTopicIntern( const TQString & ) ) ); - TQCString kstn = TQCString(TQT_TQOBJECT(this)->name()) + "_"; + TQCString kstn = TQCString(this->name()) + "_"; pan = new TQSplitter(TQt::Horizontal, top, kstn + "splitter"); #if KDE_IS_VERSION(3,1,92) @@ -312,9 +312,9 @@ KSircTopLevel::KSircTopLevel(KSircProcess *_proc, const KSircChannel &channelInf mainw->enableTimeStamps(ksopts->chan(m_channelInfo).timeStamp); edit = new TQPopupMenu(this); - act = KStdAction::copy( TQT_TQOBJECT(mainw), TQT_SLOT( copy() ), actionCollection() ); + act = KStdAction::copy( mainw, TQT_SLOT( copy() ), actionCollection() ); act->plug( edit ); - act = KStdAction::paste( TQT_TQOBJECT(this), TQT_SLOT( pasteToWindow() ), actionCollection() ); + act = KStdAction::paste( this, TQT_SLOT( pasteToWindow() ), actionCollection() ); act->plug( edit ); edit->insertItem(i18n("C&lear Window"), this, TQT_SLOT(clearWindow()), CTRL + Key_L); kmenu->insertItem(i18n("&Edit"), edit, -1, -1); @@ -1285,9 +1285,9 @@ void KSircTopLevel::control_message(int command, TQString str) logFile->open(); } setName(m_channelInfo.server().utf8() + "_" + m_channelInfo.channel().utf8() + "_" + "toplevel"); - pan->setName(TQCString(TQT_TQOBJECT(this)->name()) + "_" + "TQSplitter"); - kmenu->setName(TQCString(TQT_TQOBJECT(this)->name()) + "_tdetoolframe"); - linee->setName(TQCString(TQT_TQOBJECT(this)->name()) + "_" + "LineEnter"); + pan->setName(TQCString(this->name()) + "_" + "TQSplitter"); + kmenu->setName(TQCString(this->name()) + "_tdetoolframe"); + linee->setName(TQCString(this->name()) + "_" + "LineEnter"); kmenu->show(); setCaption(m_channelInfo.channel()); emit currentWindow(this); |