[apps] Make app accessors static members of App classes

This commit is contained in:
Ruben Dashyan
2019-07-19 13:27:15 +02:00
committed by EmilieNumworks
parent 44809f4b3f
commit eb6d697927
31 changed files with 63 additions and 70 deletions

View File

@@ -108,7 +108,7 @@ void SolutionsController::viewWillAppear() {
bool requireWarning = false;
if (m_equationStore->type() == EquationStore::Type::Monovariable) {
m_contentView.setWarningMessages(I18n::Message::OnlyFirstSolutionsDisplayed0, I18n::Message::OnlyFirstSolutionsDisplayed1);
requireWarning = m_equationStore->haveMoreApproximationSolutions(app()->localContext());
requireWarning = m_equationStore->haveMoreApproximationSolutions(App::app()->localContext());
} else if (m_equationStore->type() == EquationStore::Type::PolynomialMonovariable && m_equationStore->numberOfSolutions() == 1) {
assert(Preferences::sharedPreferences()->complexFormat() == Preferences::ComplexFormat::Real);
m_contentView.setWarningMessages(I18n::Message::PolynomeHasNoRealSolution0, I18n::Message::PolynomeHasNoRealSolution1);