mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-30 04:00:02 +02:00
Escher: Remove warnings for KDRect initialization
Change-Id: If3de349f0a82a96ee9bd10d544ebd2f5811893a4
This commit is contained in:
@@ -17,19 +17,19 @@ void TabViewController::ContentView::setActiveView(View * view) {
|
||||
|
||||
void TabViewController::ContentView::layoutSubviews() {
|
||||
KDCoordinate tabHeight = 20;
|
||||
m_tabView.setFrame({
|
||||
0,
|
||||
0,
|
||||
this->bounds().width,
|
||||
tabHeight
|
||||
});
|
||||
|
||||
KDRect tabViewFrame;
|
||||
tabViewFrame.origin = KDPointZero;
|
||||
tabViewFrame.width = this->bounds().width,
|
||||
tabViewFrame.height = tabHeight;
|
||||
m_tabView.setFrame(tabViewFrame);
|
||||
if (m_activeView) {
|
||||
m_activeView->setFrame({
|
||||
0,
|
||||
tabHeight,
|
||||
this->bounds().width,
|
||||
(KDCoordinate)(this->bounds().height - tabHeight)
|
||||
});
|
||||
KDRect activeViewFrame;
|
||||
activeViewFrame.x = 0;
|
||||
activeViewFrame.y = tabHeight;
|
||||
activeViewFrame.width = this->bounds().width;
|
||||
activeViewFrame.height = (this->bounds().height - tabHeight);
|
||||
m_activeView->setFrame(activeViewFrame);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user