]> sigrok.org Git - pulseview.git/blobdiff - pv/view/decodesignal.cpp
Removed context bar
[pulseview.git] / pv / view / decodesignal.cpp
index afc465b9e7a1fe4ff39ce10f4a8acac14e8d1264..bce58a1922751f145313bef0d53a39a992e92d61 100644 (file)
@@ -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<Annotation> > annotations(_decoder->annotations());
        BOOST_FOREACH(shared_ptr<Annotation> 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<QAction*> DecodeSignal::get_context_bar_actions()
-{
-       list<QAction*> actions;
-       return actions;
-}
-
 QMenu* DecodeSignal::create_context_menu(QWidget *parent)
 {
        QMenu *const menu = Trace::create_context_menu(parent);