mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Fix wrong date format for nomenclature table.
This commit is contained in:
@@ -369,7 +369,11 @@ void ProjectDBModel::fillValue()
|
||||
auto i=0;
|
||||
while (query_.value(i).isValid())
|
||||
{
|
||||
record_ << query_.value(i).toString();
|
||||
if (query_.value(i).canConvert(QMetaType::QDate)) {
|
||||
record_ << QLocale::system().toString(query_.value(i).toDate(), QLocale::ShortFormat);
|
||||
} else {
|
||||
record_ << query_.value(i).toString();
|
||||
}
|
||||
++i;
|
||||
}
|
||||
m_record << record_;
|
||||
|
||||
Reference in New Issue
Block a user