[escher] New handling of stack view headers in StackViewController.

A boolean in ViewController states if the ViewController wants MaximumSpace (do
not show any stack view headers), or if it does not want to add its own title to
the stack view headers. If the ViewController's title is null, it is not added
to the stack view headers.
By default, ButtonRowControllers do not want to add their title (because they
are only used for now in TabViews, where the title is already displayed in the
tab).

Change-Id: I9e4c64b845262e4d44eb03cf769950f9c9e67a3a
This commit is contained in:
Léa Saviot
2017-10-31 18:06:52 +01:00
committed by Romain Goyet
parent 68e237702b
commit eadf4a018a
9 changed files with 57 additions and 27 deletions

View File

@@ -278,7 +278,7 @@ void VariableBoxController::ContentViewController::viewDidDisappear() {
}
VariableBoxController::VariableBoxController(GlobalContext * context) :
StackViewController(nullptr, &m_contentViewController, true, KDColorWhite, Palette::PurpleBright, Palette::PurpleDark),
StackViewController(nullptr, &m_contentViewController, KDColorWhite, Palette::PurpleBright, Palette::PurpleDark),
m_contentViewController(this, context)
{
}