CComponentsWindow: adapt header and footer corners for parent window

Corners of header and footer were not adapted to parent form.
It's unsightly, if these elements are not using the same corner types
like the parent window.


Origin commit data
------------------
Commit: 66ae096372
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-24 (Fri, 24 Jan 2014)
This commit is contained in:
2014-01-24 22:26:58 +01:00
parent 3994fb14c0
commit c75a306cdd

View File

@@ -137,6 +137,7 @@ void CComponentsWindow::initHeader()
ccw_head->setCaption(ccw_caption, ccw_align_mode); ccw_head->setCaption(ccw_caption, ccw_align_mode);
// ccw_head->initCCItems(); // ccw_head->initCCItems();
ccw_head->setDefaultButtons(ccw_buttons); ccw_head->setDefaultButtons(ccw_buttons);
ccw_head->setCorner(corner_rad, CORNER_TOP);
} }
} }
@@ -176,6 +177,7 @@ void CComponentsWindow::initFooter()
ccw_footer->setPos(0, CC_APPEND); ccw_footer->setPos(0, CC_APPEND);
ccw_footer->setWidth(width-2*fr_thickness); ccw_footer->setWidth(width-2*fr_thickness);
ccw_footer->setShadowOnOff(shadow); ccw_footer->setShadowOnOff(shadow);
ccw_footer->setCorner(corner_rad, CORNER_BOTTOM);
} }
} }