2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-29 13:47:47 +00:00

Use QFontMetrics::height in PreLaunchWindow

This commit is contained in:
Ilya Fedin 2021-12-07 17:20:04 +04:00 committed by John Preston
parent 7ff7473db6
commit fedd21b0a6

View File

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