diff options
author | Sergey Starosek <sergey.starosek@gmail.com> | 2014-01-19 17:33:24 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-19 13:56:06 -0800 |
commit | ec1088f2ccf17312809cdee2b56f3de3c625b2f9 (patch) | |
tree | ff48a6f66f45a3a871a7b1238ad7c123f86d6a6e /qt-ui/maintab.cpp | |
parent | 1891cf1881df2e96f1b0d4ccfe9328b890ae5946 (diff) | |
download | subsurface-ec1088f2ccf17312809cdee2b56f3de3c625b2f9.tar.gz |
Ignore mouse wheel events on tags widget
This prevents tags widgets (dive tags and buddy) from grabbing
focus on mouse wheel events but allows entering dive edit mode
on mouse click.
It was attempted earlier by Dirk (commit d117beca), but edit mode
did not work properly.
Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 4258d093a..f3f85b05e 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -305,8 +305,7 @@ bool MainTab::eventFilter(QObject* object, QEvent* event) // FocusIn for the starWidgets or RequestSoftwareInputPanel for tagWidget start the editing if ((event->type() == QEvent::MouseButtonPress) || (event->type() == QEvent::KeyPress && object == ui.dateTimeEdit) || - (event->type() == QEvent::FocusIn && (object == ui.rating || object == ui.visibility || object == ui.buddy)) || - (event->type() == QEvent::RequestSoftwareInputPanel && object == ui.tagWidget)) { + (event->type() == QEvent::FocusIn && (object == ui.rating || object == ui.visibility || object == ui.buddy || object == ui.tagWidget))) { tabBar()->setTabIcon(currentIndex(), QIcon(":warning")); enableEdition(); } |