]> sigrok.org Git - pulseview.git/blobdiff - pv/views/trace/flag.hpp
Fix #1292/1294 by snapping to any edge when not hovering over a signal
[pulseview.git] / pv / views / trace / flag.hpp
index 4f707bddf3caaa5d9c9fc233950769510041bf21..4bf6ebd5db7f974a9857e733ce0b49c8cbde046f 100644 (file)
@@ -32,12 +32,16 @@ namespace pv {
 namespace views {
 namespace trace {
 
+/**
+ * The Flag class represents items on the @ref Ruler that mark important
+ * events on the timeline to the user. They are editable and thus non-static.
+ */
 class Flag : public TimeMarker, public enable_shared_from_this<Flag>
 {
        Q_OBJECT
 
 public:
-       static const QColor FillColour;
+       static const QColor FillColor;
 
 public:
        /**
@@ -65,7 +69,7 @@ public:
 
        pv::widgets::Popup* create_popup(QWidget *parent);
 
-       QMenu* create_context_menu(QWidget *parent);
+       QMenu* create_header_context_menu(QWidget *parent);
 
        void delete_pressed();