| 1088 | } |
| 1089 | |
| 1090 | void RunDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index ) const |
| 1091 | { |
| 1092 | QStyleOptionViewItem opt = option; |
| 1093 | // if( status.isValid() && status.canConvert<KDevelop::IRunProvider::OutputTypes>() ) |
| 1094 | // { |
| 1095 | // IRunProvider::OutputTypes type = status.value<KDevelop::IRunProvider::OutputTypes>(); |
| 1096 | // if( type == IRunProvider::RunProvider ) |
| 1097 | // { |
| 1098 | // opt.palette.setBrush( QPalette::Text, runProviderBrush.brush( option.palette ) ); |
| 1099 | // } else if( type == IRunProvider::StandardError ) |
| 1100 | // { |
| 1101 | // opt.palette.setBrush( QPalette::Text, errorBrush.brush( option.palette ) ); |
| 1102 | // } |
| 1103 | // } |
| 1104 | QItemDelegate::paint(painter, opt, index); |
| 1105 | } |
| 1106 | |
| 1107 | |
| 1108 | #include "moc_runcontroller.cpp" |