const Kita::Thread& thread = it.data();
if( thread.datURL().prettyURL() == item->text( Row_DatURL ) ) {
- emit signalShowThread( *(thread.getBoard()), thread);
+ emit signalShowThread( thread );
}
}
}
private slots:
void loadThread( QListViewItem* item );
signals:
- void signalShowThread(const Kita::Board& board, const Kita::Thread& thread);
+ void signalShowThread( const Kita::Thread& thread );
};
#endif
this, SLOT(changeStatusbar(const QString&)));
connect(m_boardView, SIGNAL(clicked(const Kita::Board&)),
m_subjectView, SLOT(loadBoard(const Kita::Board&)));
- connect(m_subjectView, SIGNAL(signalShowThread(const Kita::Board&, const Kita::Thread&)),
- m_threadView, SLOT(slotShowThread(const Kita::Board&, const Kita::Thread&)));
+ connect(m_subjectView, SIGNAL(signalShowThread( const Kita::Thread&) ),
+ m_threadView, SLOT(slotShowThread( const Kita::Thread&) ) );
connect(m_threadView, SIGNAL( thread(const Kita::Thread& ) ), SLOT( updateThreadCache( const Kita::Thread& ) ) );
connect( m_threadView, SIGNAL( thread( const Kita::Thread& ) ),
m_subjectView, SLOT( updateThread( const Kita::Thread& ) ) );
connect(this, SIGNAL(signalSubjectListClicked(QListViewItem*)), subjectList, SIGNAL(clicked(QListViewItem*)));
connect( HideButton, SIGNAL( toggled(bool) ), SLOT( slotHideButton(bool) ) );
connect( m_subjectTab, SIGNAL( currentChanged(QWidget*) ), SLOT( slotCurrentChanged(QWidget*) ) );
- connect( m_favoriteListView, SIGNAL( signalShowThread( const Kita::Board&, const Kita::Thread& ) ),
- SIGNAL( signalShowThread( const Kita::Board&, const Kita::Thread& ) ) );
+ connect( m_favoriteListView, SIGNAL( signalShowThread( const Kita::Thread& ) ),
+ SIGNAL( signalShowThread( const Kita::Thread& ) ) );
}
KitaSubjectView::~KitaSubjectView()
QString datName = item->text(Row_DatName);
KURL datURL = m_board.url();
datURL.addPath("/dat/" + datName);
- emit signalShowThread(m_board, Kita::Thread(m_board, datURL));
+ emit signalShowThread( Kita::Thread(m_board, datURL) );
}
void KitaSubjectView::loadBoard(const Kita::Board& board)
signals:
void loadBoardCompleted(const KURL&);
- void signalShowThread(const Kita::Board& board, const Kita::Thread& thread);
+ void signalShowThread( const Kita::Thread& thread );
void signalSubjectListClicked(QListViewItem* item);
};
this, SLOT( slotOpenURLResult() ) );
Kita::Board board( m_url.upURL().upURL() );
- m_threadview->slotShowThread( board, Kita::Thread( board, m_url ) );
+ m_threadview->slotShowThread( Kita::Thread( board, m_url ) );
emit started( 0 );
return true;
}
} // end of Anchor tags.
}
-void KitaThreadView::slotShowThread(const Kita::Board& board, const Kita::Thread& thread)
+void KitaThreadView::slotShowThread( const Kita::Thread& thread )
{
{ //reset member variables associated with a thread.
m_threadPart->setPrevQuery("");
m_threadPart->clearPosition();
}
- m_board = board;
+ m_board = *(thread.getBoard());
m_thread = thread;
if ( m_thread.datURL().protocol() != "k2ch" ) {
KIO::SlaveConfig::self()->setConfigData("http", m_thread.datURL().host() ,
void KitaThreadView::slotReloadButton()
{
- slotShowThread(m_board, m_thread);
+ slotShowThread( m_thread );
}
KURL KitaThreadView::filterReadCGI(const KURL& url)
void slotWriteButtonClicked();
void slotCanceled(KIO::Job* job);
void slotShowErrorDialog(const QString& input, const KURL& urlOfInput = 0);
- void slotShowThread(const Kita::Board& board, const Kita::Thread& thread);
+ void slotShowThread( const Kita::Thread& thread );
void setFont( const QFont& font );
protected slots: