RESOLVED FIXED 55330
[Qt] [WK2] QGraphicsWKView::showContextMenu() should be public
https://bugs.webkit.org/show_bug.cgi?id=55330
Summary [Qt] [WK2] QGraphicsWKView::showContextMenu() should be public
Benjamin Poulain
Reported 2011-02-27 13:47:51 PST
I originally made QGraphicsWKView::showContextMenu() private because I considered the users could just make their own slot and cut the connection to the existing slot. However, the implementation of the menu is non trivial due to the possibility of multiple call from the WebProcess. I now think the method should be accessible to implementors so they have an easy way to handle those corner case by calling the original method with their own menu. (and I added some doc so it is mentioned somewhere the menu can be empty, that cannot hurt :))
Attachments
Patch (2.48 KB, patch)
2011-02-27 13:53 PST, Benjamin Poulain
kenneth: review+
Benjamin Poulain
Comment 1 2011-02-27 13:53:14 PST
Kenneth Rohde Christiansen
Comment 2 2011-02-27 15:03:50 PST
Comment on attachment 83993 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=83993&action=review Very nice to see documentation for our WebKit2 classes! > Source/WebKit2/UIProcess/API/qt/qgraphicswkview.cpp:335 > + actions possible for its current position, it is empty if there is no action for the position. I don't think it should be a comma here. Maybe ; would do, or you could add another sentence instead.
Benjamin Poulain
Comment 3 2011-02-27 15:19:37 PST
Note You need to log in before you can comment on or make changes to this bug.