mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-01 07:05:48 +00:00
fix: tips font size not follow system
Closed: https://github.com/linuxdeepin/developer-center/issues/4350
This commit is contained in:
parent
9f092c2d01
commit
42961e5092
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user