[apps] More generic VariableBoxController methods

Before, the class differentiated between TextField and
ExpressionLayoutField

Change-Id: I1fce8bb650a0bfccb11ddf61d05335e452374abb
This commit is contained in:
Léa Saviot
2018-04-24 13:53:39 +02:00
parent f6c3f7b0e9
commit a27963597b
4 changed files with 7 additions and 40 deletions

View File

@@ -48,7 +48,7 @@ bool ExpressionFieldDelegateApp::expressionLayoutFieldDidReceiveEvent(Expression
}
AppsContainer * appsContainer = (AppsContainer *)expressionLayoutField->app()->container();
VariableBoxController * variableBoxController = appsContainer->variableBoxController();
variableBoxController->setExpressionLayoutFieldSender(expressionLayoutField);
variableBoxController->setSender(expressionLayoutField);
expressionLayoutField->app()->displayModalViewController(variableBoxController, 0.f, 0.f, Metric::PopUpTopMargin, Metric::PopUpLeftMargin, 0, Metric::PopUpRightMargin);
return true;
}