QtWidgets: Fix warnings about deprecated QGraphicsView functions.
Warnings introduced by d76de69b4b .
Change-Id: I613500074a2318a617f18d5b887840ecc3408237
Reviewed-by: Gatis Paeglis <gatis.paeglis@nokia.com>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
bb10
parent
deed9c75b4
commit
9e9ea7c0e6
|
|
@ -1806,7 +1806,7 @@ static void _q_qgraphicsItemSetFlag(QGraphicsItem *item, QGraphicsItem::Graphics
|
|||
return;
|
||||
}
|
||||
item->setFlag(flag, enabled);
|
||||
foreach (QGraphicsItem *child, item->children())
|
||||
foreach (QGraphicsItem *child, item->childItems())
|
||||
_q_qgraphicsItemSetFlag(child, flag, enabled);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -288,7 +288,7 @@ void QGraphicsProxyWidgetPrivate::sendWidgetMouseEvent(QGraphicsSceneMouseEvent
|
|||
// grabber child widget.
|
||||
if (embeddedMouseGrabber && type == QEvent::MouseButtonRelease && !event->buttons()) {
|
||||
Q_Q(QGraphicsProxyWidget);
|
||||
if (q->rect().contains(event->pos()) && q->acceptsHoverEvents())
|
||||
if (q->rect().contains(event->pos()) && q->acceptHoverEvents())
|
||||
lastWidgetUnderMouse = alienWidget ? alienWidget : widget;
|
||||
else // released on the frame our outside the item, or doesn't accept hover events.
|
||||
lastWidgetUnderMouse = 0;
|
||||
|
|
|
|||
|
|
@ -2378,7 +2378,7 @@ QGraphicsItemGroup *QGraphicsScene::createItemGroup(const QList<QGraphicsItem *>
|
|||
*/
|
||||
void QGraphicsScene::destroyItemGroup(QGraphicsItemGroup *group)
|
||||
{
|
||||
foreach (QGraphicsItem *item, group->children())
|
||||
foreach (QGraphicsItem *item, group->childItems())
|
||||
group->removeFromGroup(item);
|
||||
removeItem(group);
|
||||
delete group;
|
||||
|
|
@ -5585,7 +5585,7 @@ void QGraphicsScene::setActiveWindow(QGraphicsWidget *widget)
|
|||
QList<QGraphicsItem *> siblingWindows;
|
||||
QGraphicsItem *parent = panel->parentItem();
|
||||
// Raise ### inefficient for toplevels
|
||||
foreach (QGraphicsItem *sibling, parent ? parent->children() : items()) {
|
||||
foreach (QGraphicsItem *sibling, parent ? parent->childItems() : items()) {
|
||||
if (sibling != panel && sibling->isWindow())
|
||||
siblingWindows << sibling;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1451,7 +1451,7 @@ bool QGraphicsWidget::event(QEvent *event)
|
|||
windowFrameEvent(event);
|
||||
// Filter out hover events if they were sent to us only because of the
|
||||
// decoration (special case in QGraphicsScenePrivate::dispatchHoverEvent).
|
||||
if (!acceptsHoverEvents())
|
||||
if (!acceptHoverEvents())
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in New Issue