rem: if ( alarm ) { mAlarm = new KCal::Alarm( *alarm ); } else { mAlarm = new KCal::Alarm( 0 ); } construct();
add: if (!iconWidth) {  textIcon    = new QPixmap(SmallIcon("message")); fileIcon    = new QPixmap(SmallIcon("file")); commandIcon = new QPixmap(SmallIcon("exec")); emailIcon   = new QPixmap(SmallIcon("mail_generic")); if (textIcon) iconWidth = textIcon->width(); if (fileIcon  &&  fileIcon->width() > iconWidth) iconWidth = fileIcon->width(); if (commandIcon  &&  commandIcon->width() > iconWidth) iconWidth = commandIcon->width(); if (emailIcon  &&  emailIcon->width() > iconWidth) iconWidth = emailIcon->width(); }  setText(parent->messageColumn(), alarmText(event)); mMessageWidth = width(parent->fontMetrics(), parent, parent->messageColumn());  if (parent->timeColumn() >= 0) setText(parent->timeColumn(), alarmTimeText()); if (parent->timeToColumn() >= 0) { QString tta = timeToAlarmText(now); setText(parent->timeToColumn(), tta); mTimeToAlarmShown = !tta.isNull(); } DateTime dateTime = event.expired() ? event.startDateTime() : event.nextDateTime(); QTime t = dateTime.time(); mDateTimeOrder.sprintf("%04d%03d%02d%02d", dateTime.date().year(), dateTime.date().dayOfYear(), t.hour(), t.minute());  int repeatOrder = 0; int repeatInterval = 0; QString repeatText = event.recurrenceText(true); if (event.repeatAtLogin()) repeatOrder = 1; else { repeatInterval = event.recurInterval(); switch (event.recurType()) { case KAlarmEvent::MINUTELY: repeatOrder = 2; break; case KAlarmEvent::DAILY: repeatOrder = 3; break; case KAlarmEvent::WEEKLY: repeatOrder = 4; break; case KAlarmEvent::MONTHLY_DAY: case KAlarmEvent::MONTHLY_POS: repeatOrder = 5; break; case KAlarmEvent::ANNUAL_DATE: case KAlarmEvent::ANNUAL_POS: case KAlarmEvent::ANNUAL_DAY: repeatOrder = 6; break; case KAlarmEvent::NO_RECUR: default: break; } } setText(parent->repeatColumn(), repeatText); mRepeatOrder.sprintf("%c%08d", '0' + repeatOrder, repeatInterval);  bool showColour = (event.action() == KAlarmEvent::MESSAGE || event.action() == KAlarmEvent::FILE); mColourOrder.sprintf("%06u", (showColour ? event.bgColour().rgb() : 0));
context: AlarmListViewItem::AlarmListViewItem( QListView *parent, KCal::Alarm *alarm )    : QListViewItem( parent ){  if ( alarm ) {    mAlarm = new KCal::Alarm( *alarm );  } else {    mAlarm = new KCal::Alarm( 0 );  }  construct();}