mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-10 14:46:24 +01:00
Simplify by removing class HitTestResult...
... Because all hit tests returned all fields blank, or else, returned a UIHandle object whose Preview method gives the rest of the information; so the other fields were redundant.
This commit is contained in:
@@ -531,17 +531,13 @@ protected:
|
||||
|
||||
protected:
|
||||
std::weak_ptr<TrackPanelCell> mLastCell;
|
||||
HitTestResult mLastHitTest{};
|
||||
bool mLastHitTestValid{};
|
||||
UIHandlePtr mLastHitTest;
|
||||
unsigned mMouseOverUpdateFlags{};
|
||||
|
||||
public:
|
||||
HitTestResult *Target()
|
||||
UIHandlePtr Target()
|
||||
{
|
||||
if ( mLastHitTestValid )
|
||||
return &mLastHitTest;
|
||||
else
|
||||
return nullptr;
|
||||
return mLastHitTest;
|
||||
}
|
||||
|
||||
protected:
|
||||
@@ -550,7 +546,6 @@ protected:
|
||||
// Forget the rotation of hit test candidates when the mouse moves from
|
||||
// cell to cell or outside of the TrackPanel entirely.
|
||||
mLastCell.reset();
|
||||
mLastHitTestValid = false;
|
||||
mLastHitTest = {};
|
||||
mMouseOverUpdateFlags = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user