Skip to content

Commit

Permalink
Return notify() value from base class in touch handler
Browse files Browse the repository at this point in the history
  • Loading branch information
kevineriklee committed Jun 2, 2014
1 parent 446fdbd commit ebcf7e8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mixxxapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ bool MixxxApplication::notify(QObject* target, QEvent* event) {
QEvent::Type eventType = QEvent::None;
Qt::MouseButtons buttons = Qt::NoButton;
QWidget* fakeMouseWidget = NULL;
bool baseReturn;

//qDebug() << "&" << touchEvent->type() << target;

Expand All @@ -45,7 +46,7 @@ bool MixxxApplication::notify(QObject* target, QEvent* event) {
switch (event->type()) {
case QEvent::TouchBegin:
// try to deliver as touch event
(void)QApplication::notify(target, event);
baseReturn = QApplication::notify(target, event);
if (dynamic_cast<MixxxMainWindow*>(touchEvent->widget())) {
// the touchEvent has fallen trough to the MixxxMainWindow, because there
// was no touch enabled widget found.
Expand All @@ -65,7 +66,7 @@ bool MixxxApplication::notify(QObject* target, QEvent* event) {
fakeMouseWidget = m_fakeMouseWidget;
break;
}
return false;
return baseReturn;
case QEvent::TouchUpdate:
if (m_fakeMouseWidget) {
eventType = QEvent::MouseMove;
Expand Down

0 comments on commit ebcf7e8

Please sign in to comment.