From b4cc82042c02742d42f231504908e0ae034c6285 Mon Sep 17 00:00:00 2001 From: ikemo Date: Sat, 6 Dec 2003 15:42:18 +0000 Subject: [PATCH] remove comments git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@617 56b19765-1e22-0410-a548-a0f45d66c51a --- kita/src/kitathreadtabwidget.cpp | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/kita/src/kitathreadtabwidget.cpp b/kita/src/kitathreadtabwidget.cpp index 0dae5cf..26eba8d 100644 --- a/kita/src/kitathreadtabwidget.cpp +++ b/kita/src/kitathreadtabwidget.cpp @@ -33,14 +33,7 @@ KitaThreadTabWidget::KitaThreadTabWidget(QWidget *parent, const char *name, WFla KGlobal::locale()->insertCatalogue( "kitapart" ); KitaThreadView* view = createView(); -/* KLibFactory* factory = KLibLoader::self()->factory( "libkitapart" ); - if( ! factory ) { - QMessageBox::critical( parent, i18n( "Load Error" ), - i18n( "can't load libkitapart." ) ); - return; - } - KitaThreadPart* part = static_cast( factory->create( this, "thread", "KitaThreadPart" ) ); - KitaThreadView* view = static_cast( part->widget() );*/ + if( view ) { addTab( view, "thread" ); connectSignals( view ); @@ -77,12 +70,7 @@ KitaThreadView* KitaThreadTabWidget::createView() void KitaThreadTabWidget::showThreadWithNewTab( const Kita::Thread& thread ) { KitaThreadView* view = createView(); -/* KLibFactory* factory = KLibLoader::self()->factory( "libkitapart" ); - if( ! factory ) { - return; - } - KitaThreadPart* part = static_cast( factory->create( this, "thread", "KitaThreadPart" ) ); - KitaThreadView* view = static_cast( part->widget() );*/ + if( view ) { addTab( view, thread.name().left( MAX_TABLABEL_LEN ) ); setTabToolTip( view, thread.name() ); @@ -117,14 +105,7 @@ void KitaThreadTabWidget::deleteView( KitaThreadView* view ) if( count() == 0 ) { KitaThreadView* view = createView(); - /* - // TODO: ¥³¥ó¥¹¥È¥é¥¯¥¿¤Ç¤âƱ¤¸¥í¥¸¥Ã¥¯¤ò»È¤Ã¤Æ¤¤¤ë¡£ - KLibFactory* factory = KLibLoader::self()->factory( "libkitapart" ); - if( ! factory ) { - return; - } - KitaThreadPart* part = static_cast( factory->create( this, "thread", "KitaThreadPart" ) ); - KitaThreadView* view = static_cast( part->widget() );*/ + if( view ) { addTab( view, "thread" ); connectSignals( view ); -- 2.11.0