initial commit

This commit is contained in:
2019-02-11 17:54:49 +01:00
parent 16ae2ee2fb
commit 14abafc139
15 changed files with 883 additions and 60 deletions
+7
View File
@@ -5,6 +5,7 @@
#include <QSqlQuery>
#include <QSqlError>
#include <QFileInfo>
cPicture::cPicture(qint32 iID, QObject *parent) :
@@ -64,6 +65,12 @@ bool cPicture::fromFile(const QString& szFileName)
m_focalLength35 = exif.focalLength35();
m_gps = exif.gps();
if(!m_dateTime.isValid())
{
QFileInfo fileInfo(m_szFileName);
setDateTime(fileInfo.birthTime());
}
return(true);
}