From c75a306cdd365848f38e4a6ad309264ad3a6dafd Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 24 Jan 2014 22:26:58 +0100 Subject: [PATCH] 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: https://github.com/neutrino-images/ni-neutrino/commit/66ae0963722488c3ee162949ed048f27b1e36f9c Author: Thilo Graf Date: 2014-01-24 (Fri, 24 Jan 2014) --- src/gui/components/cc_frm_window.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/components/cc_frm_window.cpp b/src/gui/components/cc_frm_window.cpp index 0b7358700..fe4614afc 100644 --- a/src/gui/components/cc_frm_window.cpp +++ b/src/gui/components/cc_frm_window.cpp @@ -137,6 +137,7 @@ void CComponentsWindow::initHeader() ccw_head->setCaption(ccw_caption, ccw_align_mode); // ccw_head->initCCItems(); 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->setWidth(width-2*fr_thickness); ccw_footer->setShadowOnOff(shadow); + ccw_footer->setCorner(corner_rad, CORNER_BOTTOM); } }