#include "threadlistview.h"
+#include "viewmediator.h"
+
#include <kiconloader.h>
#include <klistview.h>
#include <klocale.h>
SLOT( slotHideButton( bool ) ) );
connect( subjectList, SIGNAL( mouseButtonClicked( int, QListViewItem*, const QPoint&, int ) ),
SLOT( slotMouseButtonClicked( int, QListViewItem* ) ) );
- connect( this, SIGNAL( bookmarked( const QString&, bool ) ),
- Kita::SignalCollection::getInstance(), SIGNAL( bookmarked( const QString&, bool ) ) );
- connect( this, SIGNAL( openURLRequestExt( const KURL&, const QString ) ),
- Kita::SignalCollection::getInstance(), SIGNAL( openURLRequestExt( const KURL&, const QString ) ) );
- connect( this, SIGNAL( openThread( const KURL& ) ),
- Kita::SignalCollection::getInstance(), SIGNAL( openThread( const KURL& ) ) );
}
ThreadListView::~ThreadListView()
clearSearch();
} else if ( list != m_prevquery ) {
searchNew( list );
- slotHideButton( true );
+ HideButton->setOn( true );
} else {
searchNext( list );
}
KURL datURL = item->text( Col_DatURL );
- switch ( button ) {
- case LeftButton:
- emit openThread( datURL );
- break;
+ if ( button == LeftButton ) {
+ ViewMediator::getInstance()->openThread( datURL );
}
}