mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
3e239c7e3e
commit
d6fddcaadc
2 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue