MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / show_contextmenu

Method show_contextmenu

DSView/pv/view/viewport.cpp:2120–2129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2118}
2119
2120void Viewport::show_contextmenu(const QPoint& pos)
2121{
2122 if(_cmenu &&
2123 _view.session().get_device()->get_work_mode() == DSO)
2124 {
2125 _cur_preX = pos.x();
2126 _cur_preY = pos.y();
2127 _cmenu->exec(QCursor::pos());
2128 }
2129}
2130
2131void Viewport::add_cursor_y()
2132{

Callers

nothing calls this directly

Calls 4

get_work_modeMethod · 0.80
get_deviceMethod · 0.80
sessionMethod · 0.80
execMethod · 0.45

Tested by

no test coverage detected