projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use QApplication metadata for persistent storage
[pulseview.git]
/
pv
/
view
/
selectableitem.cpp
diff --git
a/pv/view/selectableitem.cpp
b/pv/view/selectableitem.cpp
index 8dfdd8aa33d36c9c200486cb6ff317da13500989..3f4f6da92dbef767611c404c753210888b7247fe 100644
(file)
--- a/
pv/view/selectableitem.cpp
+++ b/
pv/view/selectableitem.cpp
@@
-21,6
+21,7
@@
#include "selectableitem.h"
#include <QApplication>
#include "selectableitem.h"
#include <QApplication>
+#include <QMenu>
#include <QPalette>
namespace pv {
#include <QPalette>
namespace pv {
@@
-29,6
+30,7
@@
namespace view {
const int SelectableItem::HighlightRadius = 6;
SelectableItem::SelectableItem() :
const int SelectableItem::HighlightRadius = 6;
SelectableItem::SelectableItem() :
+ _context_parent(NULL),
_selected(false)
{
}
_selected(false)
{
}
@@
-43,6
+45,16
@@
void SelectableItem::select(bool select)
_selected = select;
}
_selected = select;
}
+QMenu* SelectableItem::create_context_menu(QWidget *parent)
+{
+ _context_parent = parent;
+ return new QMenu(parent);
+}
+
+void SelectableItem::delete_pressed()
+{
+}
+
QPen SelectableItem::highlight_pen()
{
return QPen(QApplication::palette().brush(
QPen SelectableItem::highlight_pen()
{
return QPen(QApplication::palette().brush(