OSDN Git Service

add close button.
authorikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Wed, 13 Oct 2004 16:32:37 +0000 (16:32 +0000)
committerikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Wed, 13 Oct 2004 16:32:37 +0000 (16:32 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@1441 56b19765-1e22-0410-a548-a0f45d66c51a

kita/src/kitasubjectview.cpp
kita/src/threadlistview.cpp
kita/src/threadlistviewbase.ui

index ce20bbb..90d1cb8 100644 (file)
@@ -52,6 +52,8 @@ KitaSubjectView::KitaSubjectView( QWidget* parent, const char* name )
         : Kita::ThreadListView( parent, name )
         , m_unreadNum( 0 ), m_readNum( 0 ), m_newNum( 0 )
 {
+    closeButton->setEnabled( true );
+
     connect( subjectList, SIGNAL( contextMenuRequested( QListViewItem*, const QPoint&, int ) ),
              SLOT( slotContextMenuRequested( QListViewItem*, const QPoint&, int ) ) );
     connect( subjectList, SIGNAL( returnPressed( QListViewItem* ) ),
@@ -66,6 +68,8 @@ KitaSubjectView::KitaSubjectView( QWidget* parent, const char* name )
              signalCollection, SIGNAL( closeThreadTab( const KURL& ) ) );
     connect( this, SIGNAL( loadBoardCompleted( const KURL& ) ),
              signalCollection, SIGNAL( setMainURLLine( const KURL& ) ) );
+    connect( closeButton, SIGNAL( clicked() ),
+             SLOT( slotCloseButton() ) );
 }
 
 KitaSubjectView::~KitaSubjectView()
index 0f04d40..0186f9d 100644 (file)
@@ -32,6 +32,7 @@ ThreadListView::ThreadListView( QWidget* parent, const char* name )
     SearchButton->setPixmap( SmallIcon( "find" ) );
     HideButton->setPixmap( SmallIcon( "filter" ) );
     ReloadButton->setPixmap( SmallIcon( "reload" ) );
+    closeButton->setPixmap( SmallIcon( "fileclose" ) );
 
     subjectList->addColumn( "" );
     subjectList->addColumn( i18n( "No." ) );
index 829aa2b..031112f 100644 (file)
@@ -9,7 +9,7 @@
             <x>0</x>
             <y>0</y>
             <width>601</width>
-            <height>477</height>
+            <height>483</height>
         </rect>
     </property>
     <property name="caption">
@@ -27,7 +27,7 @@
         </property>
         <widget class="QLayoutWidget">
             <property name="name">
-                <cstring>layout2</cstring>
+                <cstring>layout3</cstring>
             </property>
             <hbox>
                 <property name="name">
                     </property>
                     <property name="sizeHint">
                         <size>
-                            <width>200</width>
+                            <width>150</width>
                             <height>20</height>
                         </size>
                     </property>
                 </spacer>
+                <widget class="QToolButton">
+                    <property name="name">
+                        <cstring>closeButton</cstring>
+                    </property>
+                    <property name="enabled">
+                        <bool>false</bool>
+                    </property>
+                    <property name="text">
+                        <string>Close</string>
+                    </property>
+                    <property name="toolTip" stdset="0">
+                        <string>close tab</string>
+                    </property>
+                </widget>
             </hbox>
         </widget>
         <widget class="KListView">