[escher] Add a method to update the title in stack view controller

Change-Id: Id3a7702c108de38fed74fa0db33022f186780b13
This commit is contained in:
Émilie Feral
2016-12-01 17:02:30 +01:00
parent c59145c5c8
commit b1ff25111a
2 changed files with 6 additions and 1 deletions

View File

@@ -87,11 +87,15 @@ const char * StackViewController::title() const {
}
}
void StackViewController::updateTitle() {
m_view.popStack();
m_view.pushStack(m_children[m_numberOfChildren-1]->title());
}
void StackViewController::push(ViewController * vc) {
m_view.pushStack(vc->title());
m_children[m_numberOfChildren++] = vc;
setupActiveViewController();
//vc->setParentResponder(this);
}
void StackViewController::pop() {