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:
2016-06-21 12:33:49 +02:00
parent b57cc261e0
commit 88622a07b4

View File

@@ -352,15 +352,19 @@ void CComponentsWindow::initCCWItems()
//init window body core
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->isAdded())
addCCItem(ccw_head);
if (!ccw_body->isAdded())
addCCItem(ccw_body);
if (ccw_footer)
if (!ccw_footer->isAdded())
addCCItem(ccw_footer);
if (!ccw_body->isAdded())
addCCItem(ccw_body);
}
void CComponentsWindow::enableSidebar(const int& sidbar_type)