mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-29 11:39:58 +02:00
[escher] Implement minimlSizeForOptimalDisplay in text view and button
Change-Id: I86cbc1cc9314623a1deb69f2dd36ac8c45338d92
This commit is contained in:
@@ -53,6 +53,7 @@ void Button::setBackgroundColor(KDColor backgroundColor) {
|
||||
markRectAsDirty(bounds());
|
||||
}
|
||||
|
||||
KDSize Button::textSize() {
|
||||
return m_textView.textSize();
|
||||
KDSize Button::minimalSizeForOptimalDisplay() {
|
||||
KDSize textSize = m_textView.minimalSizeForOptimalDisplay();
|
||||
return KDSize(textSize.width() + k_horizontalMargin, textSize.height() + k_verticalMargin);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user