QVideoWidget: fixed setFullScreen(false) on the Xcb platform.
Fixed exiting fullscreen when a QVideoWidget is embedded in another QWidget. Requires change I3616dc0f in qtbase to work. Because of a bug in some X window managers, the order in which setWindowFlags() and showNormal() are called has been changed. Change-Id: I335d47a3a1d9ce517978cad35597d72312150db1 Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
This commit is contained in:
committed by
The Qt Project
parent
06827f5d6e
commit
439d5b0e53
@@ -57,7 +57,7 @@ VideoWidget::VideoWidget(QWidget *parent)
|
||||
void VideoWidget::keyPressEvent(QKeyEvent *event)
|
||||
{
|
||||
if (event->key() == Qt::Key_Escape && isFullScreen()) {
|
||||
showNormal();
|
||||
setFullScreen(false);
|
||||
|
||||
event->accept();
|
||||
} else if (event->key() == Qt::Key_Enter && event->modifiers() & Qt::Key_Alt) {
|
||||
|
||||
Reference in New Issue
Block a user