[escher] Add methods on message table cells to change rendering

parameters (font size, color ...)

Change-Id: I57a6a606607787a83d152eb326f87d9209d273b3
This commit is contained in:
Émilie Feral
2017-04-04 14:05:50 +02:00
parent 7091b2ea35
commit e42d4eee20
6 changed files with 26 additions and 4 deletions

View File

@@ -27,6 +27,11 @@ void TextView::setAlignment(float horizontalAlignment, float verticalAlignment)
markRectAsDirty(bounds());
}
void TextView::setFontSize(KDText::FontSize fontSize) {
m_fontSize = fontSize;
markRectAsDirty(bounds());
}
KDSize TextView::minimalSizeForOptimalDisplay() const {
return KDText::stringSize(text(), m_fontSize);
}