OSDN Git Service

refactoring.
authorikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Sun, 6 Jul 2003 15:49:41 +0000 (15:49 +0000)
committerikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Sun, 6 Jul 2003 15:49:41 +0000 (15:49 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@394 56b19765-1e22-0410-a548-a0f45d66c51a

kita/src/part/kitathreadview.cpp
kita/src/part/kitathreadview.h

index 84ce50f..9891d0b 100644 (file)
@@ -235,7 +235,13 @@ void KitaThreadView::update( const QString& result )
   text += "</body></html>";
 
   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
index f9a6dc0..6df40a7 100644 (file)
@@ -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();