OSDN Git Service

set resNum
[kita/kita.git] / kita / src / favoritelistview.cpp
index 3558914..399d5b9 100644 (file)
@@ -91,3 +91,11 @@ void FavoriteListView::loadThread( QListViewItem* item )
   }
 }
 
+void FavoriteListView::updateThread( const Kita::Thread& updated_thread )
+{
+  for( QListViewItem* item = firstChild(); item; item = item->nextSibling() ) {
+    if( item->text( Row_DatURL ) == updated_thread.datURL().prettyURL() ) {
+      item->setText( Row_ResNum, QString("%1").arg( updated_thread.resNum(), 4 ) );
+    }
+  }
+}