X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fflag.hpp;h=fdebe1c0a6b4139b9675aa57c1771ed151fc7041;hb=aef68e5ede14e179dcd72eb56f60618931008551;hp=659d5cc1c55143aaa88bf45113f980f9a2483cf9;hpb=8914fe790fb677c56194a3ae4da06ba671fca78a;p=pulseview.git diff --git a/pv/view/flag.hpp b/pv/view/flag.hpp index 659d5cc1..fdebe1c0 100644 --- a/pv/view/flag.hpp +++ b/pv/view/flag.hpp @@ -21,12 +21,15 @@ #ifndef PULSEVIEW_PV_VIEW_FLAG_H #define PULSEVIEW_PV_VIEW_FLAG_H +#include + #include "timemarker.hpp" namespace pv { namespace view { -class Flag : public TimeMarker +class Flag : public TimeMarker, + public std::enable_shared_from_this { 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);