From 0c3bfa8f2fb956efce124dea05e006231603c333 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 26 Sep 2018 22:03:40 +0200 Subject: [PATCH] Put the video displays on the right side, making them generally larger. --- mainwindow.cpp | 3 +- ui_mainwindow.ui | 284 ++++++++++++++++++++++++----------------------- 2 files changed, 146 insertions(+), 141 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index d635384..656ff1e 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -310,7 +310,8 @@ void MainWindow::resizeEvent(QResizeEvent *event) void MainWindow::relayout() { - ui->live_display->setMinimumHeight(ui->live_display->width() * 9 / 16); + ui->live_display->setMinimumWidth(ui->live_display->height() * 16 / 9); + ui->preview_display->setMinimumWidth(ui->preview_display->height() * 16 / 9); } bool MainWindow::eventFilter(QObject *watched, QEvent *event) diff --git a/ui_mainwindow.ui b/ui_mainwindow.ui index f00e67c..27986aa 100644 --- a/ui_mainwindow.ui +++ b/ui_mainwindow.ui @@ -18,148 +18,9 @@ - Qt::Vertical + Qt::Horizontal - - - - - - - - - - - - - - - - - - - - - - - Current inputs - - - Qt::AlignCenter - - - - - - - - - - - - - - 0 - - - - - Preview output - - - Qt::AlignCenter - - - - - - - - 0 - 0 - - - - - 20 - 17 - - - - 1 - - - - - - - - 0 - 0 - - - - - 20 - 17 - - - - 2 - - - - - - - - 20 - 17 - - - - 3 - - - - - - - - 20 - 17 - - - - 4 - - - - - - - - - - - - - - - - Current output (paused) - - - Qt::AlignCenter - - - - - - - - @@ -307,6 +168,149 @@ + + + + + + + + + + + + + 0 + + + + + Preview output + + + Qt::AlignCenter + + + + + + + + 0 + 0 + + + + + 20 + 17 + + + + 1 + + + + + + + + 0 + 0 + + + + + 20 + 17 + + + + 2 + + + + + + + + 20 + 17 + + + + 3 + + + + + + + + 20 + 17 + + + + 4 + + + + + + + + + + + + + + + + Current output (paused) + + + Qt::AlignCenter + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Current inputs + + + Qt::AlignCenter + + + + + + + -- 2.39.2