CComponentsWindow/Header: fix add of header buttons

setHeaderButtons was without effect


Origin commit data
------------------
Commit: cc31a41f43
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-22 (Fri, 22 Mar 2013)
This commit is contained in:
2013-03-22 16:58:56 +01:00
parent 4096f4f6f6
commit b43f07bd80
3 changed files with 12 additions and 1 deletions

View File

@@ -82,6 +82,7 @@ void CComponentsWindow::initVarWindow()
ccw_caption = "";
ccw_icon_name = NULL;
ccw_start_y = 0;
ccw_buttons = 0; //no header buttons
setShadowOnOff(true);
}
@@ -109,6 +110,7 @@ void CComponentsWindow::initHeader()
ccw_head->setHeaderText(ccw_caption);
ccw_head->initCCHeaderItems();
ccw_start_y = ccw_head->getHeight();
ccw_head->setHeaderDefaultButtons(ccw_buttons);
}
}