set 7 inch portrait mode

This commit is contained in:
2026-09-09 14:04:03 +02:00
parent 348fb15508
commit 330dc7c109
2 changed files with 8 additions and 2 deletions
+6
View File
@@ -128,6 +128,7 @@ void MainWindow::checkOrientation()
break;
}
//this->setPortraitLayout();
this->currentOrientation = orientation;
}
@@ -143,8 +144,13 @@ void MainWindow::setPortraitLayout()
void MainWindow::setLandscapeLayout()
{
// Adjust layout for landscape mode (800x480)
/*
this->setFixedSize(800, 480);
ui->centralwidget->setFixedSize(800, 480);
*/
this->setFixedSize(480, 800);
ui->centralwidget->setFixedSize(480, 800);
}