Logo Search packages:      
Sourcecode: kdepim version File versions

void KDGanttViewItem::setDefaultColor ( const QColor &  color  )  [inherited]

Sets the default color that is used for the item if no specific start, middle, or end colors are set.

It is advisable not to use this method, but rather set the colors for all items of a type with KDGanttView::setDefaultColor() in order to get a uniform Gantt view.

If the item displays its subitems (children) as a group, (displaySubitemsAsGroup() == true) all changes apply to all subitems as well.

color the default color to use
See also:
defaultColor(), setColors(), colors()

Definition at line 1141 of file KDGanttViewItem.cpp.

References KDGanttViewItem::displaySubitemsAsGroup(), KDGanttViewItem::firstChild(), KDGanttViewItem::myGanttView, KDGanttView::myTimeTable, KDGanttViewItem::nextSibling(), KDGanttViewItem::setDefaultColor(), and KDGanttViewItem::updateCanvasItems().

Referenced by KDGanttViewItem::setDefaultColor().

    myDefaultColor = color;

   if ( displaySubitemsAsGroup() ) {
      KDGanttViewItem* temp = (KDGanttViewItem*) firstChild();
      while (temp != 0) {
      temp->setDefaultColor( color );
      temp = temp->nextSibling();

Generated by  Doxygen 1.6.0   Back to index