: 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* ) ),
signalCollection, SIGNAL( closeThreadTab( const KURL& ) ) );
connect( this, SIGNAL( loadBoardCompleted( const KURL& ) ),
signalCollection, SIGNAL( setMainURLLine( const KURL& ) ) );
+ connect( closeButton, SIGNAL( clicked() ),
+ SLOT( slotCloseButton() ) );
}
KitaSubjectView::~KitaSubjectView()
SearchButton->setPixmap( SmallIcon( "find" ) );
HideButton->setPixmap( SmallIcon( "filter" ) );
ReloadButton->setPixmap( SmallIcon( "reload" ) );
+ closeButton->setPixmap( SmallIcon( "fileclose" ) );
subjectList->addColumn( "" );
subjectList->addColumn( i18n( "No." ) );
<x>0</x>
<y>0</y>
<width>601</width>
- <height>477</height>
+ <height>483</height>
</rect>
</property>
<property name="caption">
</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">