mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
fix: tips widget size not change after system font size changed
https://tower.im/teams/9487/todos/228412/ Change-Id: Ic988face83f759895f8375e4c7954ebdbee6b887
This commit is contained in:
parent
acedaeff73
commit
2d39e69ee8
Notes:
gerrit
2019-01-23 13:45:48 +08:00
Verified+1: <jenkins@deepin.com> Code-Review+2: listenerri <listenerri@gmail.com> Submitted-by: listenerri <listenerri@gmail.com> Submitted-at: Wed, 23 Jan 2019 13:45:47 +0800 Reviewed-on: https://cr.deepin.io/41430 Project: dde/dde-dock Branch: refs/heads/master
@ -33,7 +33,6 @@ ShutdownPlugin::ShutdownPlugin(QObject *parent)
|
||||
m_pluginLoaded(false),
|
||||
m_tipsLabel(new TipsWidget)
|
||||
{
|
||||
m_tipsLabel->setText(tr("Shutdown"));
|
||||
m_tipsLabel->setVisible(false);
|
||||
}
|
||||
|
||||
@ -58,6 +57,10 @@ QWidget *ShutdownPlugin::itemTipsWidget(const QString &itemKey)
|
||||
{
|
||||
Q_UNUSED(itemKey);
|
||||
|
||||
// reset text every time to avoid size of LabelWidget not change after
|
||||
// font size be changed in ControlCenter
|
||||
m_tipsLabel->setText(tr("Shutdown"));
|
||||
|
||||
return m_tipsLabel;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user