[calculation] HistoryController: display RationalListController when

clicking on a burger of a Rational input
This commit is contained in:
Émilie Feral
2019-12-23 19:08:39 +01:00
committed by Léa Saviot
parent 54f1984cf0
commit df47a355a2
2 changed files with 4 additions and 0 deletions

View File

@@ -79,6 +79,8 @@ bool HistoryController::handleEvent(Ion::Events::Event event) {
vc = &m_trigonometryController;
} else if (additionalInfoType == Expression::AdditionalInformationType::Integer) {
vc = &m_integerController;
} else if (additionalInfoType == Expression::AdditionalInformationType::Rational) {
vc = &m_rationalController;
}
if (vc) {
vc->setExpression(calculation->input());