Esempio n. 1
0
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;
}
Esempio n. 2
0
void PageClientQGraphicsWidget::createPlatformGraphicsContext3D(PlatformGraphicsContext3D* context,
                                                                PlatformGraphicsSurface3D* surface)
{
    createPlatformGraphicsContext3DFromWidget(ownerWidget(), context, surface);
}
Esempio n. 3
0
/**
 * 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)));
}