#include "selectableitem.h"
+#include <QApplication>
+#include <QMenu>
+#include <QPalette>
+
namespace pv {
namespace view {
+const int SelectableItem::HighlightRadius = 6;
+
SelectableItem::SelectableItem() :
+ _context_parent(NULL),
_selected(false)
{
}
_selected = select;
}
+QMenu* SelectableItem::create_context_menu(QWidget *parent)
+{
+ _context_parent = parent;
+ return new QMenu(parent);
+}
+
+QPen SelectableItem::highlight_pen()
+{
+ return QPen(QApplication::palette().brush(
+ QPalette::Highlight), HighlightRadius,
+ Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin);
+}
+
} // namespace view
} // namespace pv