[apps] Define Font, Text/BackgroundColor BannerView static methods

This commit is contained in:
Ruben Dashyan
2019-03-26 11:39:25 +01:00
committed by Émilie Feral
parent 339258a29d
commit 5ff19a2506
10 changed files with 30 additions and 34 deletions

View File

@@ -175,7 +175,7 @@ void GraphController::reloadBannerView() {
}
if (!coefficientsAreDefined) {
// Force the "Data not suitable" message to be on the next line
int numberOfCharToCompleteLine = maxInt(Ion::Display::Width/(m_bannerView.font()->glyphSize().width())- strlen(I18n::translate(formula)), 0);
int numberOfCharToCompleteLine = maxInt(Ion::Display::Width / BannerView::Font()->glyphSize().width() - strlen(I18n::translate(formula)), 0);
numberOfChar = 0;
for (int i = 0; i < numberOfCharToCompleteLine-1; i++) {
buffer[numberOfChar++] = ' ';