Logo Search packages:      
Sourcecode: kdepim version File versions

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

Specifies the color to be used for the text of this item.

It is advisable not to use this method, but rather set the text color for all items with KDGanttView::setTextColor() 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 text color
See also:
textColor(), setText(), text()

Definition at line 1048 of file KDGanttViewItem.cpp.

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

Referenced by KDGanttViewItem::setTextColor().


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

Generated by  Doxygen 1.6.0   Back to index