mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps][escher] I18n
Change-Id: I4d6f40155a8a182184af9ef2a583d0469196ffd5
This commit is contained in:
@@ -15,6 +15,12 @@ void BannerView::setLegendAtIndex(char * text, int index) {
|
||||
layoutSubviews();
|
||||
}
|
||||
|
||||
void BannerView::setMessageAtIndex(I18n::Message text, int index) {
|
||||
PointerTextView * textView = pointerTextViewAtIndex(index);
|
||||
textView->setMessage(text);
|
||||
layoutSubviews();
|
||||
}
|
||||
|
||||
KDSize BannerView::minimalSizeForOptimalDisplay() const {
|
||||
return KDSize(0, KDText::stringSize(" ", KDText::FontSize::Small).height()*numberOfLines());
|
||||
}
|
||||
@@ -86,4 +92,8 @@ int BannerView::numberOfLines() const {
|
||||
return lineNumber+1;
|
||||
}
|
||||
|
||||
PointerTextView * BannerView::pointerTextViewAtIndex(int i) const {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user