Fix bug. Date on label doesn't obey GUI language locale.
--HG-- branch : feature
This commit is contained in:
parent
0bb4280a02
commit
a59e0e54af
|
@ -376,7 +376,8 @@ void VTextManager::Update(const VAbstractPattern *pDoc, qreal dSize, qreal dHeig
|
||||||
}
|
}
|
||||||
if (date.isValid() == true)
|
if (date.isValid() == true)
|
||||||
{
|
{
|
||||||
tl.m_qsText = date.toString("dd MMMM yyyy");
|
QLocale locale(qApp->Settings()->GetLocale());
|
||||||
|
tl.m_qsText = locale.toString(date, "dd MMMM yyyy");
|
||||||
tl.m_eFontWeight = QFont::Normal;
|
tl.m_eFontWeight = QFont::Normal;
|
||||||
tl.m_eStyle = QFont::StyleNormal;
|
tl.m_eStyle = QFont::StyleNormal;
|
||||||
tl.m_iFontSize = 0;
|
tl.m_iFontSize = 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user