Commit 7a04c57b authored by Yang Wang's avatar Yang Wang

callwidget: fix the problem that videoview can only maxmize it's window on primary screen


Change-Id: Ibe74f2ff8e9c570841f777130b42fa744863f790
Gitlab: #493
parent 79ec2c5b
......@@ -745,9 +745,13 @@ CallWidget::slotToggleFullScreenClicked()
ui->stackedWidget->addWidget(ui->mainActivityWidget);
ui->stackedWidget->setCurrentWidget(ui->mainActivityWidget);
ui->mainActivityWidget->showNormal();
MainWindow::instance().show();
} else {
auto geo = ui->stackedWidget->window()->geometry();
ui->stackedWidget->removeWidget(ui->mainActivityWidget);
ui->mainActivityWidget->setParent(0);
ui->mainActivityWidget->window()->setGeometry(geo);
MainWindow::instance().hide();
ui->mainActivityWidget->showFullScreen();
}
}
......
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