projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix off-by-one in PD menu list construction.
[pulseview.git]
/
pv
/
view
/
selectableitem.h
diff --git
a/pv/view/selectableitem.h
b/pv/view/selectableitem.h
index 467da0f2cbf0b7140edf87fb9e3be0b34b3c79e6..323c87e18743ff894255137af83cbc86c6fce5c3 100644
(file)
--- a/
pv/view/selectableitem.h
+++ b/
pv/view/selectableitem.h
@@
-26,6
+26,8
@@
#include <QPen>
class QAction;
#include <QPen>
class QAction;
+class QMenu;
+class QWidget;
namespace pv {
namespace view {
namespace pv {
namespace view {
@@
-56,9
+58,14
@@
public:
virtual const std::list<QAction*> get_context_bar_actions() = 0;
virtual const std::list<QAction*> get_context_bar_actions() = 0;
+ virtual QMenu* create_context_menu(QWidget *parent);
+
protected:
static QPen highlight_pen();
protected:
static QPen highlight_pen();
+protected:
+ QWidget *_context_parent;
+
private:
bool _selected;
};
private:
bool _selected;
};