mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-30 12:10:03 +02:00
[escher] Add methods on message table cells to change rendering
parameters (font size, color ...) Change-Id: I57a6a606607787a83d152eb326f87d9209d273b3
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user