set 7 inch portrait mode
This commit is contained in:
@@ -128,6 +128,7 @@ void MainWindow::checkOrientation()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//this->setPortraitLayout();
|
||||||
this->currentOrientation = orientation;
|
this->currentOrientation = orientation;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -143,8 +144,13 @@ void MainWindow::setPortraitLayout()
|
|||||||
void MainWindow::setLandscapeLayout()
|
void MainWindow::setLandscapeLayout()
|
||||||
{
|
{
|
||||||
// Adjust layout for landscape mode (800x480)
|
// Adjust layout for landscape mode (800x480)
|
||||||
|
/*
|
||||||
this->setFixedSize(800, 480);
|
this->setFixedSize(800, 480);
|
||||||
ui->centralwidget->setFixedSize(800, 480);
|
ui->centralwidget->setFixedSize(800, 480);
|
||||||
|
*/
|
||||||
|
this->setFixedSize(480, 800);
|
||||||
|
ui->centralwidget->setFixedSize(480, 800);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>800</width>
|
<width>480</width>
|
||||||
<height>480</height>
|
<height>800</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
|
|||||||
Reference in New Issue
Block a user