mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-28 18:20:14 +01:00
[apps/graph] Correct the initialisation of the application
Change-Id: I34883d5a6d00c6627d8668d560880ca52f65f7ba
This commit is contained in:
@@ -16,18 +16,6 @@ App::App(::Context * context) :
|
||||
m_tabViewController(&m_inputViewController, &m_listStackViewController, &m_graphController, &m_valuesStackViewController),
|
||||
m_inputViewController(this, &m_tabViewController)
|
||||
{
|
||||
Function * function = m_functionStore.addEmptyFunction();
|
||||
function->setContent("(x-1)*(x+1)*x");
|
||||
function = m_functionStore.addEmptyFunction();
|
||||
function->setContent("x*x");
|
||||
function = m_functionStore.addEmptyFunction();
|
||||
function->setContent("3");
|
||||
function = m_functionStore.addEmptyFunction();
|
||||
function->setContent("x*x*x");
|
||||
function = m_functionStore.addEmptyFunction();
|
||||
function->setContent("1/(1+1/x)");
|
||||
function = m_functionStore.addEmptyFunction();
|
||||
function->setContent("1/(1+1/(1/x))");
|
||||
}
|
||||
|
||||
ViewController * App::rootViewController() {
|
||||
|
||||
@@ -12,6 +12,7 @@ constexpr const char * FunctionStore::k_functionNames[k_maxNumberOfFunctions];
|
||||
FunctionStore::FunctionStore() :
|
||||
m_numberOfFunctions(0)
|
||||
{
|
||||
addEmptyFunction();
|
||||
}
|
||||
|
||||
Function * FunctionStore::functionAtIndex(int i) {
|
||||
|
||||
Reference in New Issue
Block a user