add 10 inch portrait mode

This commit is contained in:
2026-09-09 14:22:10 +02:00
parent 330dc7c109
commit 73c78302b1
3 changed files with 78 additions and 12 deletions
+9 -1
View File
@@ -128,7 +128,7 @@ void MainWindow::checkOrientation()
break;
}
//this->setPortraitLayout();
this->setPortraitLayout10Inch();
this->currentOrientation = orientation;
}
@@ -141,6 +141,14 @@ void MainWindow::setPortraitLayout()
ui->centralwidget->setFixedSize(480, 800);
}
void MainWindow::setPortraitLayout10Inch()
{
// Adjust layout for portrait mode (480x800)
this->setFixedSize(800, 1280);
ui->centralwidget->setFixedSize(800, 1280);
}
void MainWindow::setLandscapeLayout()
{
// Adjust layout for landscape mode (800x480)