1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-16 00:34:19 +00:00

Warnings: Add missing overrides

This commit is contained in:
reuk 2024-01-24 12:00:28 +00:00
parent 6c32c4df87
commit 047448fbce
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C
84 changed files with 630 additions and 627 deletions

View file

@ -37,7 +37,7 @@ public:
updateBounds (content.get());
}
void childBoundsChanged (Component* child)
void childBoundsChanged (Component* child) override
{
updateBounds (child);
}
@ -69,7 +69,7 @@ public:
{
}
void mouseWheelMove (const MouseEvent& e, const MouseWheelDetails& wheel)
void mouseWheelMove (const MouseEvent& e, const MouseWheelDetails& wheel) override
{
if (e.mods.isCtrlDown() || e.mods.isAltDown() || e.mods.isCommandDown())
mouseMagnify (e, 1.0f / (1.0f - wheel.deltaY));
@ -77,7 +77,7 @@ public:
Viewport::mouseWheelMove (e, wheel);
}
void mouseMagnify (const MouseEvent& e, float factor)
void mouseMagnify (const MouseEvent& e, float factor) override
{
panel->setZoom (panel->getZoom() * factor, e.x, e.y);
}
@ -116,7 +116,7 @@ private:
setAlwaysOnTop (true);
}
void mouseDown (const MouseEvent&)
void mouseDown (const MouseEvent&) override
{
if (Viewport* viewport = findParentComponentOfClass<Viewport>())
{
@ -125,7 +125,7 @@ private:
}
}
void mouseDrag (const MouseEvent& e)
void mouseDrag (const MouseEvent& e) override
{
if (Viewport* viewport = findParentComponentOfClass<Viewport>())
viewport->setViewPosition (jlimit (0, jmax (0, viewport->getViewedComponent()->getWidth() - viewport->getViewWidth()),