OSDN Git Service

set thread title
authorikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Mon, 7 Jul 2003 14:14:02 +0000 (14:14 +0000)
committerikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Mon, 7 Jul 2003 14:14:02 +0000 (14:14 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@395 56b19765-1e22-0410-a548-a0f45d66c51a

kita/ChangeLog
kita/src/kita.cpp
kita/src/kita.h

index 3f240fb..253daf2 100644 (file)
@@ -1,5 +1,9 @@
 2003-07-06  Hideki Ikemoto  <ikemo@users.sourceforge.jp>
 
+       * kita.{h, cpp}: set thread title.
+
+2003-07-06  Hideki Ikemoto  <ikemo@users.sourceforge.jp>
+
        * kitaboardview.cpp:
        fix memory leak.
 
index 9eba5f5..deda089 100644 (file)
@@ -92,6 +92,9 @@ KitaMainWindow::KitaMainWindow()
   connect( m_threadView, SIGNAL( thread( const Kita::Thread& ) ),
            m_subjectView, SLOT( updateThread( const Kita::Thread& ) ) );
 
+  connect( m_threadView, SIGNAL( thread( const Kita::Thread& ) ),
+                         SLOT( slotThread( const Kita::Thread& ) ) );
+
   connect( m_threadView, SIGNAL( writeSucceeded() ),
                          SLOT( slotWriteSucceeded() ) );
 
@@ -520,4 +523,9 @@ void KitaMainWindow::saveFavorites()
   }
 }
 
+void KitaMainWindow::slotThread( const Kita::Thread& thread )
+{
+  setCaption( thread.name() );
+}
+
 #include "kita.moc"
index 2cd0c9a..1d23dda 100644 (file)
@@ -111,6 +111,7 @@ private slots:
     void slotUrlLine();
     void setUrl(const KURL& url);
     void bookmark( const Kita::Thread& thread, bool on );
+    void slotThread( const Kita::Thread& thread );
 
 private:
     KitaThreadView *m_threadView;