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