src/gui/graphicsview/qgraphicsscene.cpp
branchRCL_3
changeset 13 c0432d11811c
parent 7 3f74d0d4af4c
equal deleted inserted replaced
12:cc75c76972ee 13:c0432d11811c
  3770                                                            helpEvent->scenePos(),
  3770                                                            helpEvent->scenePos(),
  3771                                                            helpEvent->widget());
  3771                                                            helpEvent->widget());
  3772     QGraphicsItem *toolTipItem = 0;
  3772     QGraphicsItem *toolTipItem = 0;
  3773     for (int i = 0; i < itemsAtPos.size(); ++i) {
  3773     for (int i = 0; i < itemsAtPos.size(); ++i) {
  3774         QGraphicsItem *tmp = itemsAtPos.at(i);
  3774         QGraphicsItem *tmp = itemsAtPos.at(i);
       
  3775         if (tmp->d_func()->isProxyWidget()) {
       
  3776             // if the item is a proxy widget, the event is forwarded to it
       
  3777             sendEvent(tmp, helpEvent);
       
  3778             if (helpEvent->isAccepted())
       
  3779                 return;
       
  3780         }
  3775         if (!tmp->toolTip().isEmpty()) {
  3781         if (!tmp->toolTip().isEmpty()) {
  3776             toolTipItem = tmp;
  3782             toolTipItem = tmp;
  3777             break;
  3783             break;
  3778         }
  3784         }
  3779     }
  3785     }