mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 06:55:58 +00:00
Use QFontMetrics::height in PreLaunchWindow
This commit is contained in:
@@ -43,9 +43,7 @@ PreLaunchWindow::PreLaunchWindow(QString title) {
|
|||||||
p.setColor(QPalette::Window, QColor(255, 255, 255));
|
p.setColor(QPalette::Window, QColor(255, 255, 255));
|
||||||
setPalette(p);
|
setPalette(p);
|
||||||
|
|
||||||
QLabel tmp(this);
|
_size = QFontMetrics(QGuiApplication::font()).height();
|
||||||
tmp.setText(qsl("Tmp"));
|
|
||||||
_size = tmp.sizeHint().height();
|
|
||||||
|
|
||||||
int paddingVertical = (_size / 2);
|
int paddingVertical = (_size / 2);
|
||||||
int paddingHorizontal = _size;
|
int paddingHorizontal = _size;
|
||||||
|
Reference in New Issue
Block a user