projects
/
tools
/
apitrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
041e5be
)
Add a key sequence for next and prev.
author
Zack Rusin
<zack@kde.org>
Wed, 13 Apr 2011 21:26:59 +0000
(17:26 -0400)
committer
Zack Rusin
<zack@kde.org>
Wed, 13 Apr 2011 21:49:41 +0000
(17:49 -0400)
gui/searchwidget.cpp
patch
|
blob
|
history
diff --git
a/gui/searchwidget.cpp
b/gui/searchwidget.cpp
index
45762b3
..
2ec746e
100644
(file)
--- a/
gui/searchwidget.cpp
+++ b/
gui/searchwidget.cpp
@@
-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);
}