diff options
author | Harshit Maurya <hmaurya999@gmail.com> | 2020-05-13 21:56:31 +0530 |
---|---|---|
committer | Harshit Maurya <hmaurya999@gmail.com> | 2020-05-16 02:17:43 +0530 |
commit | 097917be77fbf821feac26c1ea8b6ebaa8c9f9c0 (patch) | |
tree | 943d63393f3918e503069ab7df7a53a378266de4 | |
parent | bc63cbe11afc9f520ae2019f5992657942b12c63 (diff) |
wwaveformviewer: enable mouse tracking
-rw-r--r-- | src/widget/wwaveformviewer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/widget/wwaveformviewer.cpp b/src/widget/wwaveformviewer.cpp index b180b56f94..030a2c11d0 100644 --- a/src/widget/wwaveformviewer.cpp +++ b/src/widget/wwaveformviewer.cpp @@ -26,6 +26,7 @@ WWaveformViewer::WWaveformViewer(const char* group, UserSettingsPointer pConfig, m_bHotcueMenuShowing(false), m_pCueMenuPopup(make_parented<WCueMenuPopup>(pConfig, this)), m_waveformWidget(nullptr) { + setMouseTracking(true); setAcceptDrops(true); m_pZoom = new ControlProxy(group, "waveform_zoom", this); @@ -107,6 +108,7 @@ void WWaveformViewer::mousePressEvent(QMouseEvent* event) { } void WWaveformViewer::mouseMoveEvent(QMouseEvent* event) { + qWarning() << event; if (!m_waveformWidget) { return; } @@ -231,6 +233,7 @@ void WWaveformViewer::setWaveformWidget(WaveformWidgetAbstract* waveformWidget) QWidget* pWidget = m_waveformWidget->getWidget(); connect(pWidget, SIGNAL(destroyed()), this, SLOT(slotWidgetDead())); + m_waveformWidget->getWidget()->setMouseTracking(true); } } |