From a59e0e54afc9b22e38c7265bdd96d56d53885fb9 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 29 Jun 2017 14:47:24 +0300 Subject: [PATCH] Fix bug. Date on label doesn't obey GUI language locale. --HG-- branch : feature --- src/libs/vlayout/vtextmanager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/vlayout/vtextmanager.cpp b/src/libs/vlayout/vtextmanager.cpp index 41d043e7b..8a935bee8 100644 --- a/src/libs/vlayout/vtextmanager.cpp +++ b/src/libs/vlayout/vtextmanager.cpp @@ -376,7 +376,8 @@ void VTextManager::Update(const VAbstractPattern *pDoc, qreal dSize, qreal dHeig } 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_eStyle = QFont::StyleNormal; tl.m_iFontSize = 0;