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<KitaThreadPart *>( factory->create( this, "thread", "KitaThreadPart" ) );
- KitaThreadView* view = static_cast<KitaThreadView *>( part->widget() );*/
+
if( view ) {
addTab( view, "thread" );
connectSignals( view );
void KitaThreadTabWidget::showThreadWithNewTab( const Kita::Thread& thread )
{
KitaThreadView* view = createView();
-/* KLibFactory* factory = KLibLoader::self()->factory( "libkitapart" );
- if( ! factory ) {
- return;
- }
- KitaThreadPart* part = static_cast<KitaThreadPart *>( factory->create( this, "thread", "KitaThreadPart" ) );
- KitaThreadView* view = static_cast<KitaThreadView *>( part->widget() );*/
+
if( view ) {
addTab( view, thread.name().left( MAX_TABLABEL_LEN ) );
setTabToolTip( view, thread.name() );
if( count() == 0 ) {
KitaThreadView* view = createView();
- /*
- // TODO: ¥³¥ó¥¹¥È¥é¥¯¥¿¤Ç¤âƱ¤¸¥í¥¸¥Ã¥¯¤ò»È¤Ã¤Æ¤¤¤ë¡£
- KLibFactory* factory = KLibLoader::self()->factory( "libkitapart" );
- if( ! factory ) {
- return;
- }
- KitaThreadPart* part = static_cast<KitaThreadPart *>( factory->create( this, "thread", "KitaThreadPart" ) );
- KitaThreadView* view = static_cast<KitaThreadView *>( part->widget() );*/
+
if( view ) {
addTab( view, "thread" );
connectSignals( view );