mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
fix: time not display in fashion mode when using some special language
https://github.com/linuxdeepin/internal-discussion/issues/691 Change-Id: I86b298651e19ddea3b1eb4283705fc5f1c22679d
This commit is contained in:
parent
740d95ff1a
commit
395de03ee6
Notes:
gerrit
2018-12-26 15:59:52 +08:00
Verified+1: <jenkins@deepin.com> Verified+1: liuwen123 <liuwen@linuxdeepin.com> Code-Review+2: listenerri <listenerri@gmail.com> Submitted-by: listenerri <listenerri@gmail.com> Submitted-at: Wed, 26 Dec 2018 15:59:52 +0800 Reviewed-on: https://cr.deepin.io/40878 Project: dde/dde-dock Branch: refs/heads/master
@ -99,7 +99,10 @@ void DatetimeWidget::paintEvent(QPaintEvent *e)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const QString currentTimeString = current.toString(m_24HourFormat ? "hhmm" : "hhmma");
|
// use language Chinese to fix can not find image resources which will be drawn
|
||||||
|
const QString currentTimeString = QLocale(QLocale::Chinese, QLocale::system().country())
|
||||||
|
.toString(current, m_24HourFormat ? "hhmm" : "hhmma");
|
||||||
|
|
||||||
// check cache valid
|
// check cache valid
|
||||||
if (m_cachedTime != currentTimeString)
|
if (m_cachedTime != currentTimeString)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user