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);
|
ui->realTimeButton->setVisible(false);
|
||||||
|
|
||||||
if ((QApplication::desktop()->availableGeometry().x() < 1440) || (QApplication::desktop()->availableGeometry().y() < 900))
|
if ((QApplication::desktop()->availableGeometry().width() < 1440) || (QApplication::desktop()->availableGeometry().height() < 900))
|
||||||
this->setGeometry(0, 0, 800, 600);
|
{
|
||||||
|
qDebug() << "Low resolution detected:" << QApplication::desktop()->availableGeometry().width() << "x" << QApplication::desktop()->availableGeometry().height();
|
||||||
|
this->setGeometry(64, 64, 800, 600);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MainWindow::~MainWindow()
|
MainWindow::~MainWindow()
|
||||||
|
|
|
@ -15,8 +15,8 @@
|
||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>1024</width>
|
<width>800</width>
|
||||||
<height>768</height>
|
<height>600</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
|
@ -1341,7 +1341,7 @@
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>1440</width>
|
<width>1440</width>
|
||||||
<height>20</height>
|
<height>26</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QMenu" name="menuFile">
|
<widget class="QMenu" name="menuFile">
|
||||||
|
@ -1445,8 +1445,8 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>170</width>
|
<width>159</width>
|
||||||
<height>115</height>
|
<height>126</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="title">
|
<property name="title">
|
||||||
|
|
Loading…
Reference in New Issue