[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:
Ruben Dashyan
2019-02-20 18:12:33 +01:00
committed by Émilie Feral
parent 54ff7a3b84
commit 513a4cf852
9 changed files with 11 additions and 29 deletions

View File

@@ -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