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.
This commit is contained in:
2014-01-24 22:26:58 +01:00
parent 39d6340598
commit 66ae096372

View File

@@ -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);
}
}