aboutsummaryrefslogtreecommitdiffstats
path: root/findwidget.cpp
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2012-10-05 12:57:49 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2012-10-05 12:57:49 +0000
commit98eb763a1423b564d36ea56b21654ee642fb13c6 (patch)
tree2e5a186449fbae50293d3fd69bd1ee8e0a936e86 /findwidget.cpp
parentsimplify findwidget (add setbackground method to remove duplicate code) (diff)
downloadgpg4usb-98eb763a1423b564d36ea56b21654ee642fb13c6.tar.gz
gpg4usb-98eb763a1423b564d36ea56b21654ee642fb13c6.zip
now find previous works with Shift+F3
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@993 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'findwidget.cpp')
-rw-r--r--findwidget.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/findwidget.cpp b/findwidget.cpp
index cc1f73d..f2f9bf1 100644
--- a/findwidget.cpp
+++ b/findwidget.cpp
@@ -97,11 +97,12 @@ void FindWidget::keyPressEvent( QKeyEvent* e )
case Qt::Key_Escape:
this->slotClose();
break;
- case Qt::Key_F3 + Qt::SHIFT:
- this->slotFindPrevious();
- break;
case Qt::Key_F3:
- this->slotFindNext();
+ if (e->modifiers() & Qt::ShiftModifier) {
+ this->slotFindPrevious();
+ } else {
+ this->slotFindNext();
+ }
break;
}
}