]> git.sesse.net Git - nageru/blobdiff - mainwindow.cpp
Convert Y'CbCr using Movit instead of in software with Qt. Saves a fair amount of...
[nageru] / mainwindow.cpp
index 84231b743a0734cf91c143a9f99a16c11b45f157..9a2c5f1151b26ec2bf1971534e123809c88c246d 100644 (file)
@@ -133,3 +133,17 @@ void MainWindow::live_player_clip_done()
                playlist_clips->set_currently_playing(-1);
        }
 }
+
+void MainWindow::resizeEvent(QResizeEvent *event)
+{
+       QMainWindow::resizeEvent(event);
+
+       // Ask for a relayout, but only after the event loop is done doing relayout
+       // on everything else.
+       QMetaObject::invokeMethod(this, "relayout", Qt::QueuedConnection);
+}
+
+void MainWindow::relayout()
+{
+       ui->live_display->setMinimumHeight(ui->live_display->width() * 9 / 16);
+}