projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ViewWidget: Moved in drag_items
[pulseview.git]
/
pv
/
view
/
flag.hpp
diff --git
a/pv/view/flag.hpp
b/pv/view/flag.hpp
index 659d5cc1c55143aaa88bf45113f980f9a2483cf9..c4e4cbb2c211b8b11e7ba96cebcfe274d6651f23 100644
(file)
--- a/
pv/view/flag.hpp
+++ b/
pv/view/flag.hpp
@@
-21,12
+21,17
@@
#ifndef PULSEVIEW_PV_VIEW_FLAG_H
#define PULSEVIEW_PV_VIEW_FLAG_H
#ifndef PULSEVIEW_PV_VIEW_FLAG_H
#define PULSEVIEW_PV_VIEW_FLAG_H
+#include <memory>
+
#include "timemarker.hpp"
#include "timemarker.hpp"
+class QMenu;
+
namespace pv {
namespace view {
namespace pv {
namespace view {
-class Flag : public TimeMarker
+class Flag : public TimeMarker,
+ public std::enable_shared_from_this<pv::view::Flag>
{
Q_OBJECT
{
Q_OBJECT
@@
-59,7
+64,13
@@
public:
pv::widgets::Popup* create_popup(QWidget *parent);
pv::widgets::Popup* create_popup(QWidget *parent);
+ QMenu* create_context_menu(QWidget *parent);
+
+ void delete_pressed();
+
private Q_SLOTS:
private Q_SLOTS:
+ void on_delete();
+
void on_text_changed(const QString &text);
private:
void on_text_changed(const QString &text);
private: