]> sigrok.org Git - pulseview.git/blobdiff - pv/view/flag.hpp
Flag: Added delete key support
[pulseview.git] / pv / view / flag.hpp
index 659d5cc1c55143aaa88bf45113f980f9a2483cf9..fdebe1c0a6b4139b9675aa57c1771ed151fc7041 100644 (file)
 #ifndef PULSEVIEW_PV_VIEW_FLAG_H
 #define PULSEVIEW_PV_VIEW_FLAG_H
 
+#include <memory>
+
 #include "timemarker.hpp"
 
 namespace pv {
 namespace view {
 
-class Flag : public TimeMarker
+class Flag : public TimeMarker,
+       public std::enable_shared_from_this<pv::view::Flag>
 {
        Q_OBJECT
 
@@ -59,6 +62,8 @@ public:
 
        pv::widgets::Popup* create_popup(QWidget *parent);
 
+       void delete_pressed();
+
 private Q_SLOTS:
        void on_text_changed(const QString &text);