MCPcopy Create free account
hub / github.com/KDE/kdevelop / paint

Method paint

kdevplatform/shell/runcontroller.cpp:1090–1105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1088}
1089
1090void 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"

Callers 1

paintFunction · 0.45

Calls 1

paintFunction · 0.85

Tested by

no test coverage detected