mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-20 09:17:23 +01:00
[apps/probability] Improve proba cells
Change-Id: I85a7077eb2b996316ed6dff8af12fd6cfb2876a3
This commit is contained in:
@@ -29,7 +29,7 @@ void Cell::layoutSubviews() {
|
||||
KDCoordinate height = bounds().height();
|
||||
m_labelView.setFrame(KDRect(1+k_iconWidth+2*k_iconMargin, 1, width-2-k_iconWidth-2*k_iconMargin - k_chevronWidth, height-2));
|
||||
m_iconView.setFrame(KDRect(1+k_iconMargin, (height - k_iconHeight)/2, k_iconWidth, k_iconHeight));
|
||||
m_chevronView.setFrame(KDRect(width-1-k_chevronWidth, 1, k_chevronWidth, height - 2));
|
||||
m_chevronView.setFrame(KDRect(width-1-k_chevronWidth-k_chevronMargin, 1, k_chevronWidth, height - 2));
|
||||
}
|
||||
|
||||
void Cell::reloadCell() {
|
||||
|
||||
@@ -16,7 +16,8 @@ private:
|
||||
constexpr static KDCoordinate k_iconWidth = 35;
|
||||
constexpr static KDCoordinate k_iconHeight = 19;
|
||||
constexpr static KDCoordinate k_iconMargin = 10;
|
||||
constexpr static KDCoordinate k_chevronWidth = 20+8;
|
||||
constexpr static KDCoordinate k_chevronWidth = 8;
|
||||
constexpr static KDCoordinate k_chevronMargin = 10;
|
||||
int numberOfSubviews() const override;
|
||||
View * subviewAtIndex(int index) override;
|
||||
void layoutSubviews() override;
|
||||
|
||||
Reference in New Issue
Block a user