mirror of https://github.com/EspoTek/Labrador.git
Fixed resolution scaling issues. (See Issue #46)
This commit is contained in:
parent
b112f5b691
commit
2c2db8855b
|
@ -160,8 +160,11 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||
|
||||
ui->realTimeButton->setVisible(false);
|
||||
|
||||
if ((QApplication::desktop()->availableGeometry().x() < 1440) || (QApplication::desktop()->availableGeometry().y() < 900))
|
||||
this->setGeometry(0, 0, 800, 600);
|
||||
if ((QApplication::desktop()->availableGeometry().width() < 1440) || (QApplication::desktop()->availableGeometry().height() < 900))
|
||||
{
|
||||
qDebug() << "Low resolution detected:" << QApplication::desktop()->availableGeometry().width() << "x" << QApplication::desktop()->availableGeometry().height();
|
||||
this->setGeometry(64, 64, 800, 600);
|
||||
}
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>1024</width>
|
||||
<height>768</height>
|
||||
<width>800</width>
|
||||
<height>600</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
|
@ -1341,7 +1341,7 @@
|
|||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>1440</width>
|
||||
<height>20</height>
|
||||
<height>26</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuFile">
|
||||
|
@ -1445,8 +1445,8 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>170</width>
|
||||
<height>115</height>
|
||||
<width>159</width>
|
||||
<height>126</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="title">
|
||||
|
|
Loading…
Reference in New Issue