MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / contextMenuEvent

Method contextMenuEvent

src/plugins/codeeditor/gui/texteditor.cpp:991–1004  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

989}
990
991void TextEditor::contextMenuEvent(QContextMenuEvent *event)
992{
993 if (!contextMenuNeeded(event->pos().x(), event->pos().y()))
994 return;
995
996 d->tipsDisplayable = false;
997 int xPos = event->pos().x();
998 if (xPos <= d->marginsWidth()) {
999 d->showMarginMenu();
1000 } else {
1001 d->showContextMenu();
1002 }
1003 d->tipsDisplayable = true;
1004}
1005
1006void TextEditor::dropEvent(QDropEvent *event)
1007{

Callers

nothing calls this directly

Calls 3

marginsWidthMethod · 0.80
showMarginMenuMethod · 0.80
showContextMenuMethod · 0.45

Tested by

no test coverage detected