summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-ui/profile/profilewidget2.cpp5
-rw-r--r--qt-ui/profile/profilewidget2.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index 12b04f4bc..979e9c21b 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -848,6 +848,11 @@ void ProfileWidget2::mouseMoveEvent(QMouseEvent *event)
&& timeAxis->minimum() <= hValue){
mouseFollowerVertical->setPos(pos.x(), profileYAxis->line().y1());
}
+ if ( timeAxis->maximum() >= hValue
+ && timeAxis->minimum() <= hValue
+ && profileYAxis->maximum() >= vValue
+ && profileYAxis->minimum() <= vValue )
+ emit mouseMoved(hValue, vValue);
}
bool ProfileWidget2::eventFilter(QObject *object, QEvent *event)
diff --git a/qt-ui/profile/profilewidget2.h b/qt-ui/profile/profilewidget2.h
index f35d07186..51acef91e 100644
--- a/qt-ui/profile/profilewidget2.h
+++ b/qt-ui/profile/profilewidget2.h
@@ -84,6 +84,9 @@ public:
void clearHandlers();
State currentState;
+signals:
+ void mouseMoved(int time, int depth);
+
public
slots: // Necessary to call from QAction's signals.
void settingsChanged();