rem: void getSelectedItems(QList<KGanttItem>& list) { getSelectedItems(_toplevelitem, list);
add: xQGanttBarViewPort::getSelectedItems (KGanttItem* item, QPtrList<KGanttItem>& list) { if(item->isSelected()) list.append(item);  for(KGanttItem* subitem = item->getSubItems().first(); subitem != 0; subitem = item->getSubItems().next() ) {  getSelectedItems(subitem,list);
context:   void getSelectedItems(QList<KGanttItem>& list) {    getSelectedItems(_toplevelitem, list);  }