mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Change saveddate (title block variable) static date format "yyyy-MM-dd"
to System Locale Short Date git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5503 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -876,7 +876,7 @@ QETResult QETProject::write()
|
|||||||
if (!QET::writeXmlFile(xml_project, m_file_path, &error_message)) return(error_message);
|
if (!QET::writeXmlFile(xml_project, m_file_path, &error_message)) return(error_message);
|
||||||
|
|
||||||
//title block variables should be updated after file save dialog is confirmed, before file is saved.
|
//title block variables should be updated after file save dialog is confirmed, before file is saved.
|
||||||
project_properties_.addValue("saveddate", QDate::currentDate().toString("yyyy-MM-dd"));
|
project_properties_.addValue("saveddate", QDate::currentDate().toString(Qt::SystemLocaleShortDate));
|
||||||
project_properties_.addValue("savedtime", QDateTime::currentDateTime().toString("HH:mm"));
|
project_properties_.addValue("savedtime", QDateTime::currentDateTime().toString("HH:mm"));
|
||||||
project_properties_.addValue("savedfilename", QFileInfo(filePath()).baseName());
|
project_properties_.addValue("savedfilename", QFileInfo(filePath()).baseName());
|
||||||
project_properties_.addValue("savedfilepath", filePath());
|
project_properties_.addValue("savedfilepath", filePath());
|
||||||
|
|||||||
Reference in New Issue
Block a user