Add a new signal to send the current time/depth of the mouse pos

As the explanation says. :)

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-12-30 21:30:13 -02:00 committed by Dirk Hohndel
parent 3e239c7e3e
commit d6fddcaadc
2 changed files with 8 additions and 0 deletions

View file

@ -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)

View file

@ -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();