diff --git a/widgets/widget.cpp b/widgets/widget.cpp index 4d843860a..18be542d0 100644 --- a/widgets/widget.cpp +++ b/widgets/widget.cpp @@ -521,8 +521,9 @@ void Widget::managingLayoutChanged() void Widget::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) { - // HACK: QGraphicsItem's documentation says that the event will be - // passed to the parent if it's not handled, but it isn't passed. + // HACK: QGraphicsItem's documentation says that the event will be passed + // to the parent if it's not handled, but it isn't passed. This can be + // removed when Qt4.4 becomes a requirement. See Qt bug #176902. Widget *parentWidget = parent(); if (parentWidget) { parentWidget->contextMenuEvent(event);