mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17:45 +00:00
Restore setFamily in crash report window
Since setFamily in QApplication::setFont was removed
This commit is contained in:
@@ -90,6 +90,7 @@ void PreLaunchLabel::setText(const QString &text) {
|
|||||||
|
|
||||||
PreLaunchInput::PreLaunchInput(QWidget *parent, bool password) : QLineEdit(parent) {
|
PreLaunchInput::PreLaunchInput(QWidget *parent, bool password) : QLineEdit(parent) {
|
||||||
QFont logFont(font());
|
QFont logFont(font());
|
||||||
|
logFont.setFamily(style::internal::GetFontOverride());
|
||||||
logFont.setPixelSize(static_cast<PreLaunchWindow*>(parent)->basicSize());
|
logFont.setPixelSize(static_cast<PreLaunchWindow*>(parent)->basicSize());
|
||||||
setFont(logFont);
|
setFont(logFont);
|
||||||
|
|
||||||
@@ -107,6 +108,7 @@ PreLaunchInput::PreLaunchInput(QWidget *parent, bool password) : QLineEdit(paren
|
|||||||
|
|
||||||
PreLaunchLog::PreLaunchLog(QWidget *parent) : QTextEdit(parent) {
|
PreLaunchLog::PreLaunchLog(QWidget *parent) : QTextEdit(parent) {
|
||||||
QFont logFont(font());
|
QFont logFont(font());
|
||||||
|
logFont.setFamily(style::internal::GetFontOverride());
|
||||||
logFont.setPixelSize(static_cast<PreLaunchWindow*>(parent)->basicSize());
|
logFont.setPixelSize(static_cast<PreLaunchWindow*>(parent)->basicSize());
|
||||||
setFont(logFont);
|
setFont(logFont);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user