From 6617da3bf99ad120def73bb2bc7f82bf40a384e9 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Thu, 5 Feb 2015 12:24:49 +0100 Subject: Clarify QTextEdit::createStandardContextMenu(QPoint) docs It assumes document coordinates. Change-Id: I9c1db154d45053065533c10bf76c338cc1324081 Reviewed-by: Marc Mutz --- src/widgets/widgets/qtextedit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/widgets/widgets/qtextedit.cpp') diff --git a/src/widgets/widgets/qtextedit.cpp b/src/widgets/widgets/qtextedit.cpp index fa7ba1c524..7439005b92 100644 --- a/src/widgets/widgets/qtextedit.cpp +++ b/src/widgets/widgets/qtextedit.cpp @@ -1838,7 +1838,7 @@ QMenu *QTextEdit::createStandardContextMenu() This function creates the standard context menu which is shown when the user clicks on the text edit with the right mouse button. It is called from the default contextMenuEvent() handler - and it takes the \a position of where the mouse click was. + and it takes the \a position in document coordinates where the mouse click was. This can enable actions that are sensitive to the position where the user clicked. The popup menu's ownership is transferred to the caller. */ -- cgit v1.2.3