mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 06:07:45 +00:00
Use QFontMetrics::height in PreLaunchWindow
This commit is contained in:
parent
7ff7473db6
commit
fedd21b0a6
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user