| 989 | } |
| 990 | |
| 991 | void 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 | |
| 1006 | void TextEditor::dropEvent(QDropEvent *event) |
| 1007 | { |
nothing calls this directly
no test coverage detected