Skip to content

Commit

Permalink
fix: tips font size not follow system
Browse files Browse the repository at this point in the history
  • Loading branch information
justforlxz committed Jun 29, 2023
1 parent 9f092c2 commit 42961e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions widgets/tipswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@
#include <QPainter>
#include <QAccessible>
#include <QTextDocument>
#include <QGuiApplication>

namespace Dock{
TipsWidget::TipsWidget(QWidget *parent)
: QFrame(parent)
, m_type(SingleLine)
{
connect(qApp, &QGuiApplication::fontChanged, this, [=] {
setFont(qApp->font());
});
setFont(qApp->font());
}

void TipsWidget::setText(const QString &text)
Expand Down

0 comments on commit 42961e5

Please sign in to comment.