mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
Fix: in fashion mode, the dock shows AM instead of PM at 12 pm.
Change-Id: I86cc2985c0f2a6b863684ad9cce8c5c2ba5140c5
This commit is contained in:
parent
570230afaf
commit
fc5135ea74
Notes:
Deepin Code Review
2018-02-22 09:15:19 +08:00
Verified+1: Anonymous Coward #1000004 Code-Review+2: 石博文 <sbw@sbw.so> Submitted-by: 石博文 <sbw@sbw.so> Submitted-at: Thu, 22 Feb 2018 09:15:19 +0800 Reviewed-on: https://cr.deepin.io/31663 Project: dde/dde-dock Branch: refs/heads/master
@ -167,7 +167,7 @@ void DatetimeWidget::paintEvent(QPaintEvent *e)
|
||||
const int tips_height = tips_width / 2;
|
||||
|
||||
QPixmap tips;
|
||||
if (current.time().hour() > 12)
|
||||
if (current.time().hour() > 11)
|
||||
tips = loadSvg(":/icons/resources/icons/tips-pm.svg", QSize(tips_width, tips_height));
|
||||
else
|
||||
tips = loadSvg(":/icons/resources/icons/tips-am.svg", QSize(tips_width, tips_height));
|
||||
|
Loading…
x
Reference in New Issue
Block a user