X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fdecodetrace.cpp;h=b1084f84e9c8228e427475577c32c0d956aee719;hp=65b3172cf36b4150910b8592c6d721e5080dd840;hb=ec4f16ff84c688f2572c6e3d2e2184aee95f46f7;hpb=bdb971404d30bae069a1f431a3ac4d7476d1fd38 diff --git a/pv/views/trace/decodetrace.cpp b/pv/views/trace/decodetrace.cpp index 65b3172c..b1084f84 100644 --- a/pv/views/trace/decodetrace.cpp +++ b/pv/views/trace/decodetrace.cpp @@ -1246,6 +1246,11 @@ void DecodeTrace::initialize_row_widgets(DecodeTraceRow* r, unsigned int row_id) cb->setText(tr(ann_class->description)); cb->setChecked(ann_class->visible); + int dim = ViewItemPaintParams::text_height() - 2; + QPixmap pixmap(dim, dim); + pixmap.fill(r->ann_class_color[ann_class->id]); + cb->setIcon(pixmap); + r->selector_container->layout()->addWidget(cb); cb->setProperty("ann_class_ptr", QVariant::fromValue((void*)ann_class));