mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps] BannerView::numberOfSubviews
Shared::BannerView::numberOfSubviews made pure virtual. Define constexpr attributes instead of magic numbers. Move numberOfSubviews to header file.
This commit is contained in:
committed by
Émilie Feral
parent
54ff7a3b84
commit
513a4cf852
@@ -29,10 +29,6 @@ KDSize BannerView::minimalSizeForOptimalDisplay() const {
|
||||
return KDSize(0, HeightGivenNumberOfLines(numberOfLines()));
|
||||
}
|
||||
|
||||
int BannerView::numberOfSubviews() const {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void BannerView::layoutSubviews() {
|
||||
/* We iterate on subviews, adding their width until we exceed the view bound.
|
||||
* The last subview that exceeds the bound is recorded as the first subview of
|
||||
|
||||
Reference in New Issue
Block a user