QWindow* QWebPageClient::ownerWindow() const { QWidget* widget = ownerWidget(); if (!widget) return 0; if (QWindow *window = widget->windowHandle()) return window; if (const QWidget *nativeParent = widget->nativeParentWidget()) return nativeParent->windowHandle(); return 0; }
void PageClientQGraphicsWidget::createPlatformGraphicsContext3D(PlatformGraphicsContext3D* context, PlatformGraphicsSurface3D* surface) { createPlatformGraphicsContext3DFromWidget(ownerWidget(), context, surface); }
/** * Implement abstract function from PinPortWidget. */ void PinWidget::connectOwnerMotion() { ActivityWidget *owner = static_cast<ActivityWidget*>(ownerWidget()); connect(owner, SIGNAL(sigActMoved(qreal,qreal)), this, SLOT(slotOwnerMoved(qreal,qreal))); }