mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
CComponentsWindow: change order of items
Add header and footer items as first and body as last item.
Render of items occurs in listed order. So it's better for performance
while render of window.
This is something more advantageously because all other items are
contained inside body. So we avoid possible delay while rendering
of base items. It looks better on screen.
Origin commit data
------------------
Commit: 29d723a97b
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-06-21 (Tue, 21 Jun 2016)
Origin message was:
------------------
CComponentsWindow: change order of items
Add header and footer items as first and body as last item.
Render of items occurs in listed order. So it's better for performance
while render of window.
This is something more advantageously because all other items are
contained inside body. So we avoid possible delay while rendering
of base items. It looks better on screen.
This commit is contained in:
@@ -352,15 +352,19 @@ void CComponentsWindow::initCCWItems()
|
|||||||
//init window body core
|
//init window body core
|
||||||
initBody();
|
initBody();
|
||||||
|
|
||||||
//add header, body and footer items only one time
|
/*Add header and footer items as first and body as last item.
|
||||||
|
Render of items occurs in listed order. So it's better for performance while render of window.
|
||||||
|
This is something more advantageously because all other items are contained inside body.
|
||||||
|
So we avoid possible delay while rendering of base items. It looks better on screen.
|
||||||
|
*/
|
||||||
if (ccw_head)
|
if (ccw_head)
|
||||||
if (!ccw_head->isAdded())
|
if (!ccw_head->isAdded())
|
||||||
addCCItem(ccw_head);
|
addCCItem(ccw_head);
|
||||||
if (!ccw_body->isAdded())
|
|
||||||
addCCItem(ccw_body);
|
|
||||||
if (ccw_footer)
|
if (ccw_footer)
|
||||||
if (!ccw_footer->isAdded())
|
if (!ccw_footer->isAdded())
|
||||||
addCCItem(ccw_footer);
|
addCCItem(ccw_footer);
|
||||||
|
if (!ccw_body->isAdded())
|
||||||
|
addCCItem(ccw_body);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CComponentsWindow::enableSidebar(const int& sidbar_type)
|
void CComponentsWindow::enableSidebar(const int& sidbar_type)
|
||||||
|
Reference in New Issue
Block a user