[App/zoom_parameter_controller] Add comment

See : https://github.com/numworks/epsilon/pull/1548#discussion_r425708055
This commit is contained in:
Joachim Le Fournis
2020-05-15 14:11:23 +02:00
committed by EmilieNumworks
parent f1209bcf76
commit 67fc7502e2

View File

@@ -58,6 +58,11 @@ int ZoomParameterController::ContentView::numberOfSubviews() const {
View * ZoomParameterController::ContentView::subviewAtIndex(int index) {
assert(index >= 0 && index < 2);
/* The order of subview is important here :
* If we redraw the curveView before the legendView, that can have some display issue, when exiting sleep mode, which
can be visible, if the redraw of curveView is long (with complicated curve), so we prefer to have legendView
at first subview.
*/
if (index == 0) {
return &m_legendView;
}