Refactor cRecMenuNoTimerConflict

This commit is contained in:
kamel5 2019-11-09 11:58:46 +01:00
parent 33196207d0
commit 0837137ea8

View File

@ -307,13 +307,14 @@ int cRecMenuTimerConflict::GetTimerConflictIndex(void) {
}
// --- cRecMenuNoTimerConflict ---------------------------------------------------------
cRecMenuNoTimerConflict::cRecMenuNoTimerConflict(void) {
cRecMenuNoTimerConflict::cRecMenuNoTimerConflict(void) { // OK
SetWidthPercent(50);
cString text = tr("No Timer Conflicts found");
cRecMenuItemInfo *infoItem = new cRecMenuItemInfo(*text);
infoItem->CalculateHeight(width - 4 * border);
AddMenuItem(infoItem);
AddMenuItem(new cRecMenuItemButton(tr("Close"), rmsClose, true));
const cString line1 = tr("No Timer Conflicts found");
AddHeader(new cRecMenuItemInfo(*line1, 1, "", "", "", width - 4 * border));
AddFooter(new cRecMenuItemButton(tr("Close"), rmsClose, true));
CalculateHeight();
CreatePixmap();
Arrange();