{
{ //reset member variables associated with a thread.
m_threadPart->m_prevQuery = "";
- m_nextHit = 0;
+ m_threadPart->m_nextHit = 0;
m_threadPart->m_hitCount = 0;
m_writeResult = "";
m_threadData = "";
if ( query.isEmpty() ) return;
if ( ! HighLightButton->isOn() ) {
HighLightButton->toggle();
- m_nextHit = 0; //A next jump-search target reset to '0'.
+ m_threadPart->m_nextHit = 0; //A next jump-search target reset to '0'.
// Process works asynchronusly. So Firstly, we don't do jump-search as a simple solution.
return;
}
if ( query != m_threadPart->m_prevQuery ) {
highLighten( true, query );
- m_nextHit = 0; //A next jump-search target reset to '0'.
+ m_threadPart->m_nextHit = 0; //A next jump-search target reset to '0'.
return;
}
- gotoAnchor( QString("highlighten%1").arg(m_nextHit) );
- ++m_nextHit;
- if ( !( m_nextHit < m_threadPart->m_hitCount ) ) m_nextHit = 0;
+ gotoAnchor( QString("highlighten%1").arg(m_threadPart->m_nextHit) );
+ ++(m_threadPart->m_nextHit);
+ if ( !( m_threadPart->m_nextHit < m_threadPart->m_hitCount ) ) m_threadPart->m_nextHit = 0;
}
void KitaThreadView::highLighten(bool yes, const QStringList &query)
#endif
// m_threadPart->setUserStyleSheet( highlightCSS );
-
if ( m_threadPart->m_prevQuery != query && !query.isEmpty() ) {
m_threadPart->m_prevQuery = query;
slotDisplayContents( m_threadPart->m_contents, m_thread.datURL() );