mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 23:20:52 +01:00
Fix wrong date format for nomenclature table.
This commit is contained in:
@@ -369,7 +369,11 @@ void ProjectDBModel::fillValue()
|
|||||||
auto i=0;
|
auto i=0;
|
||||||
while (query_.value(i).isValid())
|
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;
|
++i;
|
||||||
}
|
}
|
||||||
m_record << record_;
|
m_record << record_;
|
||||||
|
|||||||
Reference in New Issue
Block a user