Fix scaling in crash reporter

This commit is contained in:
Ilya Fedin 2020-04-29 03:42:21 +04:00 committed by John Preston
parent 4e210e40a2
commit 17de6c1ff3

View File

@ -42,7 +42,9 @@ PreLaunchWindow::PreLaunchWindow(QString title) {
p.setColor(QPalette::Background, QColor(255, 255, 255));
setPalette(p);
_size = QFontInfo(QApplication::font()).pixelSize();
QLabel tmp(this);
tmp.setText(qsl("Tmp"));
_size = tmp.sizeHint().height();
int paddingVertical = (_size / 2);
int paddingHorizontal = _size;