[apps] Replace k_cursorTop/BottomMarginRatio by virtual methods

In SimpleInteractiveCurveViewController subclasses.
This commit is contained in:
Ruben Dashyan
2019-03-13 10:06:50 +01:00
committed by Émilie Feral
parent fe977bdc07
commit 5b6fca8f72
9 changed files with 15 additions and 16 deletions

View File

@@ -19,8 +19,8 @@ public:
void viewWillAppear() override;
protected:
float cursorTopMarginRatio() { return 0.068f; } // (cursorHeight/2)/graphViewHeight
float cursorBottomMarginRatio();
float cursorTopMarginRatio() override { return 0.068f; }
float cursorBottomMarginRatio() override;
void reloadBannerView() override;
bool handleEnter() override;
int indexFunctionSelectedByCursor() const { return *m_indexFunctionSelectedByCursor; }