]> sigrok.org Git - pulseview.git/blobdiff - pv/views/trace/viewitem.cpp
Allow for a context menu in the view area
[pulseview.git] / pv / views / trace / viewitem.cpp
index 445f17958b06719ccdd66f66a2afc43c00b2ae83..7c1fae736699e2215aefb71e7aaec1f0a714fe00 100644 (file)
@@ -88,6 +88,12 @@ QMenu* ViewItem::create_context_menu(QWidget *parent)
        return new QMenu(parent);
 }
 
        return new QMenu(parent);
 }
 
+QMenu* ViewItem::create_view_context_menu(QWidget *parent)
+{
+       (void)parent;
+       return nullptr;
+}
+
 widgets::Popup* ViewItem::create_popup(QWidget *parent)
 {
        (void)parent;
 widgets::Popup* ViewItem::create_popup(QWidget *parent)
 {
        (void)parent;
@@ -130,7 +136,7 @@ void ViewItem::paint_fore(QPainter &p, ViewItemPaintParams &pp)
        (void)pp;
 }
 
        (void)pp;
 }
 
-QColor ViewItem::select_text_colour(QColor background)
+QColor ViewItem::select_text_color(QColor background)
 {
        return (background.lightness() > 110) ? Qt::black : Qt::white;
 }
 {
        return (background.lightness() > 110) ? Qt::black : Qt::white;
 }