Commit b46f6499 authored by Edric Milaret's avatar Edric Milaret

video: fix for resize disable after fullscreen

Issue: #80865
Change-Id: Ic86e39c4004e1d9f97526b3298e25ab073452697
parent d94e0660
...@@ -146,8 +146,9 @@ VideoView::toggleFullScreen() ...@@ -146,8 +146,9 @@ VideoView::toggleFullScreen()
{ {
if(isFullScreen()) { if(isFullScreen()) {
this->setParent(oldParent_); this->setParent(oldParent_);
this->showNormal(); oldParent_->layout()->addWidget(this);
this->resize(oldSize_.width(), oldSize_.height()); this->resize(oldSize_.width(), oldSize_.height());
this->show();
} else { } else {
oldSize_ = this->size(); oldSize_ = this->size();
oldParent_ = static_cast<QWidget*>(this->parent()); oldParent_ = static_cast<QWidget*>(this->parent());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment