Add a key sequence for next and prev.
authorZack Rusin <zack@kde.org>
Wed, 13 Apr 2011 21:26:59 +0000 (17:26 -0400)
committerZack Rusin <zack@kde.org>
Wed, 13 Apr 2011 21:49:41 +0000 (17:49 -0400)
gui/searchwidget.cpp

index 45762b3..2ec746e 100644 (file)
@@ -2,6 +2,7 @@
 
 #include <QDebug>
 #include <QKeyEvent>
+#include <QKeySequence>
 
 SearchWidget::SearchWidget(QWidget *parent)
     : QWidget(parent)
@@ -20,6 +21,11 @@ SearchWidget::SearchWidget(QWidget *parent)
     connect(m_ui.lineEdit, SIGNAL(returnPressed()),
             SLOT(slotSearchNext()));
 
+    m_ui.nextButton->setShortcut(
+        QKeySequence::FindNext);
+    m_ui.prevButton->setShortcut(
+        QKeySequence::FindPrevious);
+
     installEventFilter(this);
 }