mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
fix: 根据com.deepin.daemon.Timedate接口的TimeUpdate信号刷新时间日期插件的布局
在控制中心手动设置当前时间后,任务栏插件大小未更新,造成内容显示不全,连接com.deepin.daemon.Timedate接口的 TimeUpdate信号刷新时间日期插件的布局 Log: 修复12小时制任务栏时间显示不全问题 Bug: https://pms.uniontech.com/zentao/bug-view-67911.html Change-Id: I12e3d4b2e21decbec819f1739eb5b5cffb1e2c6c
This commit is contained in:
parent
1721db7f02
commit
e31eb53f2b
@ -50,6 +50,12 @@ DatetimeWidget::DatetimeWidget(QWidget *parent)
|
|||||||
|
|
||||||
connect(m_timedateInter, &Timedate::ShortDateFormatChanged, this, &DatetimeWidget::setShortDateFormat);
|
connect(m_timedateInter, &Timedate::ShortDateFormatChanged, this, &DatetimeWidget::setShortDateFormat);
|
||||||
connect(m_timedateInter, &Timedate::ShortTimeFormatChanged, this, &DatetimeWidget::setShortTimeFormat);
|
connect(m_timedateInter, &Timedate::ShortTimeFormatChanged, this, &DatetimeWidget::setShortTimeFormat);
|
||||||
|
//连接日期时间修改信号,更新日期时间插件的布局
|
||||||
|
connect(m_timedateInter, &Timedate::TimeUpdate, this, [ = ]{
|
||||||
|
if (isVisible()) {
|
||||||
|
emit requestUpdateGeometry();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void DatetimeWidget::set24HourFormat(const bool value)
|
void DatetimeWidget::set24HourFormat(const bool value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user