KStdAction::openNew(this, SLOT(fileNew()), actionCollection());
KStdAction::quit( this, SLOT( close() ), actionCollection());
KStdAction::copy( this, SLOT( slotEditCopy() ), actionCollection() );
+ KStdAction::find( this, SLOT( slotEditFind() ), actionCollection() );
m_toolbarAction = KStdAction::showToolbar(this,
SLOT(optionsShowToolbar()),
}
}
+void KitaMainWindow::slotEditFind()
+{
+ m_threadView->focusSearchCombo();
+}
+
#include "kita.moc"
void windowShowSubjectlist();
void windowMenuAboutToShow();
void slotEditCopy();
+ void slotEditFind();
void changeStatusbar(const QString& text);
void changeCaption(const QString& text);
}
}
+void KitaThreadTabWidget::focusSearchCombo()
+{
+ static_cast<KitaThreadView *>( currentPage() )->focusSearchCombo();
+}
+
KitaThreadTabBar::KitaThreadTabBar( QWidget* parent, const char* name )
: QTabBar( parent, name )
{
public:
KitaThreadTabWidget(QWidget *parent = 0, const char *name = 0, WFlags f = 0);
~KitaThreadTabWidget();
+ void focusSearchCombo();
public slots:
void showThread( const Kita::Thread& thread );
}
}
+void KitaThreadView::focusSearchCombo()
+{
+ SearchCombo->setFocus();
+}
+
namespace Kita
{
const KURL threadURL() const;
void searchNext( const QStringList &input );
void killJob();
+ void focusSearchCombo();
public slots:
void showThread( const Kita::Thread& thread );