From 17de6c1ff3b37b05bf700532e6244ba9e49af918 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Wed, 29 Apr 2020 03:42:21 +0400 Subject: [PATCH] Fix scaling in crash reporter --- Telegram/SourceFiles/core/crash_report_window.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/core/crash_report_window.cpp b/Telegram/SourceFiles/core/crash_report_window.cpp index f2434f195..4f69672b8 100644 --- a/Telegram/SourceFiles/core/crash_report_window.cpp +++ b/Telegram/SourceFiles/core/crash_report_window.cpp @@ -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;