X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fdecodesignal.cpp;h=bce58a1922751f145313bef0d53a39a992e92d61;hb=b7b659aa72851df2d34d4c1e5fd5636fbd9176d1;hp=afc465b9e7a1fe4ff39ce10f4a8acac14e8d1264;hpb=c51482b339fbb76e0de042ac3f136a6e5b752b9a;p=pulseview.git diff --git a/pv/view/decodesignal.cpp b/pv/view/decodesignal.cpp index afc465b9..bce58a19 100644 --- a/pv/view/decodesignal.cpp +++ b/pv/view/decodesignal.cpp @@ -59,11 +59,6 @@ DecodeSignal::DecodeSignal(pv::SigSession &session, this, SLOT(on_new_decode_data())); } -void DecodeSignal::init_context_bar_actions(QWidget *parent) -{ - (void)parent; -} - bool DecodeSignal::enabled() const { return true; @@ -104,18 +99,11 @@ void DecodeSignal::paint_mid(QPainter &p, int left, int right) vector< shared_ptr > annotations(_decoder->annotations()); BOOST_FOREACH(shared_ptr a, annotations) { assert(a); - a->paint(p, _colour, _colour.darker(), get_text_colour(), - _text_size.height(), left, right, samples_per_pixel, - pixels_offset, y); + a->paint(p, get_text_colour(), _text_size.height(), + left, right, samples_per_pixel, pixels_offset, y); } } -const list DecodeSignal::get_context_bar_actions() -{ - list actions; - return actions; -} - QMenu* DecodeSignal::create_context_menu(QWidget *parent) { QMenu *const menu = Trace::create_context_menu(parent);