Commit Graph

7 Commits

Author SHA1 Message Date
Romain Goyet
84768472bd Explicit std::min/max template usage
This is unfortunately required in several cases:
 - Sometimes when we use either float and double (this should be changed)
 - Because KDCoordinate is not an int, so any arithmemtic promotes it to
an int
 - Because we mix pointer differences and ints
2020-04-14 09:31:02 -04:00
Romain Goyet
950862f8d0 Use std::min and std::max 2020-04-14 09:31:02 -04:00
Émilie Feral
466f588a99 [apps/settings] Between two 'didEnterResponderChain', the exam mode page
might change the number of rows/the displayed messages. We then have to
re-layout the SelectableViewWithMessages to set the right frame to the
SelectableTableView.
2020-02-12 15:13:26 +01:00
Émilie Feral
8a87bcfc5b [apps/settings] SelectableViewWithMessages: position the additional
messages at the bottom of the view
2020-02-12 15:13:26 +01:00
Émilie Feral
3612d25539 [apps/settings] AboutController::m_view should live inside the Settings
app

This fixes the following bug: AboutController::view was built at first
call of "AboutController::view()" but the Settings can be rebuilt later
and the pointers might have moved (hence the ones used in
AboutController::view constructor which is not rebuilt then)
2020-02-12 15:13:26 +01:00
Émilie Feral
fffcadf384 [apps/settings] Display a caution message in the 'about' page in non-official
software versions
2020-02-12 15:13:26 +01:00
Émilie Feral
f57fb84429 [apps/settings] Create a class SelectableViewWithMessages used in
ExamModeController for future factorization
2020-02-12 15:13:25 +01:00