BlackBerry: fix BbVideoWindowControl window zorder
Change-Id: I6c3b70d5d5a0afcb00ce2494ee071d6f3abd7626 Reviewed-by: Fabian Bumberger <fbumberger@rim.com> Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
This commit is contained in:
committed by
The Qt Project
parent
a2f9f25d85
commit
2858e6cc3e
@@ -196,7 +196,7 @@ void BbVideoWindowControl::attachDisplay(mmr_context_t *context)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
QWindow * const window = findWindow(m_winId);
|
QWindow *window = findWindow(m_winId);
|
||||||
if (!window) {
|
if (!window) {
|
||||||
qDebug() << "BbVideoWindowControl: No video window!";
|
qDebug() << "BbVideoWindowControl: No video window!";
|
||||||
return;
|
return;
|
||||||
@@ -218,6 +218,10 @@ void BbVideoWindowControl::attachDisplay(mmr_context_t *context)
|
|||||||
const QString groupName = QString::fromLatin1(groupNameData);
|
const QString groupName = QString::fromLatin1(groupNameData);
|
||||||
m_windowName = QString("BbVideoWindowControl_%1_%2").arg(winIdCounter++)
|
m_windowName = QString("BbVideoWindowControl_%1_%2").arg(winIdCounter++)
|
||||||
.arg(QCoreApplication::applicationPid());
|
.arg(QCoreApplication::applicationPid());
|
||||||
|
|
||||||
|
nativeInterface->setWindowProperty(window->handle(),
|
||||||
|
QStringLiteral("mmRendererWindowName"), m_windowName);
|
||||||
|
|
||||||
// Start with an invisible window. If it would be visible right away, it would be at the wrong
|
// Start with an invisible window. If it would be visible right away, it would be at the wrong
|
||||||
// position, and we can only change the position once we get the window handle.
|
// position, and we can only change the position once we get the window handle.
|
||||||
const QString videoDeviceUrl =
|
const QString videoDeviceUrl =
|
||||||
|
|||||||
Reference in New Issue
Block a user