From 398f8252bfa1ffc348e32f63bbdfe28f9c6fa792 Mon Sep 17 00:00:00 2001 From: Chris Esposito Date: Sat, 27 Apr 2019 11:52:56 +1000 Subject: [PATCH] Better UI on 1366x768 displays --- Desktop_Interface/mainwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Desktop_Interface/mainwindow.cpp b/Desktop_Interface/mainwindow.cpp index c618a515..845ba5dc 100644 --- a/Desktop_Interface/mainwindow.cpp +++ b/Desktop_Interface/mainwindow.cpp @@ -220,13 +220,13 @@ MainWindow::MainWindow(QWidget *parent) : if ((QApplication::desktop()->availableGeometry().width() < 1520) || (QApplication::desktop()->geometry().height() < 800)) { qDebug() << "Low resolution detected:" << QApplication::desktop()->availableGeometry().width() << "x" << QApplication::desktop()->availableGeometry().height(); - this->setMinimumSize(800, 600); - this->setGeometry(64, 64, 800, 600); + this->setMinimumSize(1280, 700); + this->resize(1280, 700); } else { this->setMinimumSize(1520, 800); - this->setGeometry(64, 64, 1520, 800); + this->resize(1520, 800); } connect(ui->offsetSpinBox_CH1, SIGNAL(valueChanged(double)), ui->controller_iso, SLOT(offsetChanged_CH1(double)));