diff -r 43268373032d -r e265f07f2173 treemodel.cpp --- a/treemodel.cpp Wed Jun 09 13:14:08 2010 +0000 +++ b/treemodel.cpp Mon Jun 14 13:59:17 2010 +0000 @@ -26,10 +26,15 @@ if (!index.isValid()) return QVariant(); + TreeItem *item = getItem (index); + if (role != Qt::DisplayRole) - return QVariant(); + { + if (role == Qt::ForegroundRole ) + return item->getHeadingColor(); + return QVariant(); + } - TreeItem *item = getItem (index); return item->data(index.column()); }