Logo Search packages:      
Sourcecode: kdepim version File versions

void KDGanttViewItem::setColors ( const QColor &  start,
const QColor &  middle,
const QColor &  end 
) [inherited]

Specifies the colors in which to draw the shapes of this item.

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

start the color for the start shape
middle the color for the middle shape
end the color for the end shape
See also:
colors(), setShapes(), shapes(), setDefaultColor(), defaultColor()

Definition at line 948 of file KDGanttViewItem.cpp.

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

Referenced by KDGanttViewItem::setColors().


    myStartColor=start ;
    myMiddleColor= middle;
    myEndColor= end;
    if ( displaySubitemsAsGroup() ) {
      KDGanttViewItem* temp = (KDGanttViewItem*) firstChild();
      while (temp != 0) {
      temp->setColors( start, middle, end );
      temp = temp->nextSibling();

Generated by  Doxygen 1.6.0   Back to index