[apps] Graph: In graphview, replace the type by a boolean to decide

wether to draw tangent
This commit is contained in:
Émilie Feral
2018-01-10 15:11:53 +01:00
committed by EmilieNumworks
parent cdfbc02499
commit 53b90034da
5 changed files with 8 additions and 14 deletions

View File

@@ -21,7 +21,7 @@ const char * TangentGraphController::title() {
void TangentGraphController::viewWillAppear() {
m_graphRange->panToMakePointVisible(m_cursor->x(), m_cursor->y(), k_cursorTopMarginRatio, k_cursorRightMarginRatio, k_cursorBottomMarginRatio, k_cursorLeftMarginRatio);
m_graphView->setType(GraphView::Type::Tangent);
m_graphView->drawTangent(true);
m_graphView->setOkView(nullptr);
m_graphView->selectMainView(true);
reloadBannerView();