initial commit
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user