const Kita::Thread* thread = Kita::Thread::getByURL( *it );
if ( thread->datURL() == item->text( Col_DatURL ) ) {
- emit showThreadRequested( thread, false );
+ emit showThreadRequested( thread->datURL(), false );
}
}
}
KRun::runURL( thread->url(), "text/html" );
break;
case 1:
- emit showThreadRequested( thread, true );
+ emit showThreadRequested( thread->datURL(), true );
break;
case 2:
clipboard->setText( thread->name() + "\n" + thread->url() );
connect( m_boardView, SIGNAL( openBoardRequested( const QString&, bool ) ),
m_subjectTab, SLOT( loadBoard( const QString&, bool ) ) );
- connect( m_subjectTab, SIGNAL( showThreadRequested( const Kita::Thread*, bool ) ),
- m_threadTab, SLOT( showThread( const Kita::Thread*, bool ) ) );
+ connect( m_subjectTab, SIGNAL( showThreadRequested( const QString&, bool ) ),
+ m_threadTab, SLOT( showThread( const QString&, bool ) ) );
connect( m_threadTab, SIGNAL( thread( const Kita::Thread* ) ),
m_subjectTab, SLOT( updateThread( const Kita::Thread* ) ) );
void KitaSubjectTabWidget::connectSignals( Kita::ThreadListView* view )
{
- connect( view, SIGNAL( showThreadRequested( const Kita::Thread*, bool ) ),
- this, SIGNAL( showThreadRequested( const Kita::Thread*, bool ) ) );
+ connect( view, SIGNAL( showThreadRequested( const QString&, bool ) ),
+ this, SIGNAL( showThreadRequested( const QString&, bool ) ) );
}
KitaSubjectView* KitaSubjectTabWidget::findView( const QString& boardURL )
void deleteView( KitaSubjectView* view );
signals:
- void showThreadRequested( const Kita::Thread*, bool withNewTab );
+ void showThreadRequested( const QString&, bool withNewTab );
void loadBoardCompleted( const KURL& );
};
Kita::Thread* thread = Kita::Thread::getByURL( datURL.url() );
if ( KitaConfig::alwaysUseTab() ) {
- emit showThreadRequested( thread, true );
+ emit showThreadRequested( thread->datURL(), true );
} else {
- emit showThreadRequested( thread, false );
+ emit showThreadRequested( thread->datURL(), false );
}
}
/*
KRun::runURL( thread->url(), "text/html" );
break;
case 1:
- emit showThreadRequested( thread, true );
+ emit showThreadRequested( thread->datURL(), true );
break;
case 2:
clipboard->setText( thread->name() + "\n" + thread->url() );
switch ( button ) {
case MidButton:
- emit showThreadRequested( thread, true );
+ emit showThreadRequested( thread->datURL(), true );
break;
case LeftButton:
if ( KitaConfig::alwaysUseTab() ) {
- emit showThreadRequested( thread, true );
+ emit showThreadRequested( thread->datURL(), true );
} else {
- emit showThreadRequested( thread, false );
+ emit showThreadRequested( thread->datURL(), false );
}
break;
}
signals:
/**
- * @param thread ɽ¼¨¤¹¤ë¥¹¥ì
+ * @param datURL ɽ¼¨¤¹¤ë¥¹¥ì¤Îdat¤ÎURL
*/
- void showThreadRequested( const Kita::Thread* thread, bool withNewTab );
+ void showThreadRequested( const QString& datURL, bool withNewTab );
};
class ThreadListViewItem : public KListViewItem