summaryrefslogtreecommitdiff
path: root/muse/awl/tcanvas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'muse/awl/tcanvas.cpp')
-rw-r--r--muse/awl/tcanvas.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/muse/awl/tcanvas.cpp b/muse/awl/tcanvas.cpp
index e08c349a..d0da4c7f 100644
--- a/muse/awl/tcanvas.cpp
+++ b/muse/awl/tcanvas.cpp
@@ -83,7 +83,7 @@ TimeCanvas::TimeCanvas(TimeCanvasType t)
setLayout(grid);
_widget = new QWidget;
- _widget->setAttribute(Qt::WA_NoSystemBackground);
+ _widget->setAttribute(Qt::WA_NoSystemBackground);
_widget->setAttribute(Qt::WA_StaticContents);
_widget->installEventFilter(this);
_widget->setMouseTracking(true);
@@ -411,7 +411,6 @@ bool TimeCanvas::eventFilter(QObject* obj, QEvent* event)
}
}
return true;
-
default:
// printf("event %d missed\n", event->type());
break;
@@ -419,6 +418,15 @@ bool TimeCanvas::eventFilter(QObject* obj, QEvent* event)
return false;
}
+
+
+void TimeCanvas::keyPressEvent(QKeyEvent *e)
+{
+ if (e->key() == Qt::Key_Up || e->key() == Qt::Key_Down ||
+ e->key() == Qt::Key_Left || e->key() == Qt::Key_Right)
+ keyboardNavigate(e);
+}
+
//---------------------------------------------------------
// moveX
//---------------------------------------------------------