mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 13:47:05 +02:00
Use QFontMetrics::height in PreLaunchWindow
This commit is contained in:
parent
7ff7473db6
commit
fedd21b0a6
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue