[interactive_curve_view_controller] Zoom button

Renamed zoom button

Change-Id: I476c0991d5ab88c6642b793fbe10debbcca4e014
This commit is contained in:
Gabriel Ozouf
2020-10-16 16:10:51 +02:00
committed by Émilie Feral
parent 0e4de43b8f
commit 3a87e47de5
2 changed files with 3 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ InteractiveCurveViewController::InteractiveCurveViewController(Responder * paren
graphController->normalizeButtonAction();
return true;
}, this), KDFont::SmallFont),
m_zoomButton(this, I18n::Message::Navigate, Invocation([](void * context, void * sender) {
m_navigationButton(this, I18n::Message::Navigate, Invocation([](void * context, void * sender) {
InteractiveCurveViewController * graphController = (InteractiveCurveViewController *) context;
graphController->navigationButtonAction();
return true;
@@ -138,7 +138,7 @@ int InteractiveCurveViewController::numberOfButtons(ButtonRowController::Positio
}
Button * InteractiveCurveViewController::buttonAtIndex(int index, ButtonRowController::Position position) const {
const Button * buttons[] = {&m_autoButton, &m_normalizeButton, &m_zoomButton, &m_rangeButton};
const Button * buttons[] = {&m_autoButton, &m_normalizeButton, &m_navigationButton, &m_rangeButton};
return (Button *)buttons[index];
}

View File

@@ -81,7 +81,7 @@ private:
InteractiveCurveViewRange * m_interactiveRange;
Button m_autoButton;
Button m_normalizeButton;
Button m_zoomButton;
Button m_navigationButton;
Button m_rangeButton;
};