form->addRow(stack_button_box);
}
-QMenu* DecodeTrace::create_context_menu(QWidget *parent)
+QMenu* DecodeTrace::create_header_context_menu(QWidget *parent)
{
- QMenu *const menu = Trace::create_context_menu(parent);
+ QMenu *const menu = Trace::create_header_context_menu(parent);
menu->addSeparator();
void populate_popup_form(QWidget *parent, QFormLayout *form);
- QMenu* create_context_menu(QWidget *parent);
+ QMenu* create_header_context_menu(QWidget *parent);
void delete_pressed();
return popup;
}
-QMenu* Flag::create_context_menu(QWidget *parent)
+QMenu* Flag::create_header_context_menu(QWidget *parent)
{
QMenu *const menu = new QMenu(parent);
pv::widgets::Popup* create_popup(QWidget *parent);
- QMenu* create_context_menu(QWidget *parent);
+ QMenu* create_header_context_menu(QWidget *parent);
void delete_pressed();
if (!r)
return;
- QMenu *menu = r->create_context_menu(this);
+ QMenu *menu = r->create_header_context_menu(this);
if (!menu)
menu = new QMenu(this);
if (!r)
return;
- QMenu *menu = r->create_context_menu(this);
+ QMenu *menu = r->create_header_context_menu(this);
if (menu)
menu->exec(event->globalPos());
}
add_color_option(parent, form);
}
-QMenu* Signal::create_context_menu(QWidget *parent)
+QMenu* Signal::create_header_context_menu(QWidget *parent)
{
- QMenu *const menu = Trace::create_context_menu(parent);
+ QMenu *const menu = Trace::create_header_context_menu(parent);
menu->addSeparator();
virtual void populate_popup_form(QWidget *parent, QFormLayout *form);
- QMenu* create_context_menu(QWidget *parent);
+ QMenu* create_header_context_menu(QWidget *parent);
void delete_pressed();
Qt::AlignCenter | Qt::AlignVCenter, base_->name());
}
-QMenu* Trace::create_context_menu(QWidget *parent)
+QMenu* Trace::create_header_context_menu(QWidget *parent)
{
- QMenu *const menu = ViewItem::create_context_menu(parent);
+ QMenu *const menu = ViewItem::create_header_context_menu(parent);
return menu;
}
*/
virtual void paint_label(QPainter &p, const QRect &rect, bool hover);
- virtual QMenu* create_context_menu(QWidget *parent);
+ virtual QMenu* create_header_context_menu(QWidget *parent);
pv::widgets::Popup* create_popup(QWidget *parent);
return false;
}
-QMenu* TraceGroup::create_context_menu(QWidget *parent)
+QMenu* TraceGroup::create_header_context_menu(QWidget *parent)
{
QMenu *const menu = new QMenu(parent);
*/
bool pt_in_label_rect(int left, int right, const QPoint &point);
- QMenu* create_context_menu(QWidget *parent);
+ QMenu* create_header_context_menu(QWidget *parent);
pv::widgets::Popup* create_popup(QWidget *parent);
return QRectF();
}
-QMenu* ViewItem::create_context_menu(QWidget *parent)
+QMenu* ViewItem::create_header_context_menu(QWidget *parent)
{
context_parent_ = parent;
return new QMenu(parent);
static QColor select_text_color(QColor background);
public:
- virtual QMenu* create_context_menu(QWidget *parent);
+ virtual QMenu* create_header_context_menu(QWidget *parent);
virtual QMenu* create_view_context_menu(QWidget *parent);