add 10 inch portrait mode
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user