From 23fa1c19f1386facb87198739daaeba48beb8bdb Mon Sep 17 00:00:00 2001 From: ikemo Date: Sun, 6 Jul 2003 15:49:41 +0000 Subject: [PATCH] refactoring. git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@394 56b19765-1e22-0410-a548-a0f45d66c51a --- kita/src/part/kitathreadview.cpp | 8 ++++++-- kita/src/part/kitathreadview.h | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/kita/src/part/kitathreadview.cpp b/kita/src/part/kitathreadview.cpp index 84ce50f..9891d0b 100644 --- a/kita/src/part/kitathreadview.cpp +++ b/kita/src/part/kitathreadview.cpp @@ -235,7 +235,13 @@ void KitaThreadView::update( const QString& result ) text += ""; m_threadPart->displayContentsAndGotoURL( text, m_thread ); + updateButton(); + emit showThreadCompleted( m_thread.url() ); +} + +void KitaThreadView::updateButton() +{ if ( HighLightButton->isOn() ) { HighLightButton->toggle(); } @@ -244,8 +250,6 @@ void KitaThreadView::update( const QString& result ) } else { BookmarkButton->setOn( false ); } - - emit showThreadCompleted( m_thread.url() ); } const QString KitaThreadView::footer( int prevResNum ) const diff --git a/kita/src/part/kitathreadview.h b/kita/src/part/kitathreadview.h index f9a6dc0..6df40a7 100644 --- a/kita/src/part/kitathreadview.h +++ b/kita/src/part/kitathreadview.h @@ -81,6 +81,7 @@ private: // Private attributes const QString footer( int ) const; QStringList parseSearchQuery( const QString &input ) const; void update( const QString& result ); + void updateButton(); private slots: void slotSearchButton(); -- 2.11.0