Changeset View
Changeset View
Standalone View
Standalone View
src/imageprocessorrunnable.cpp
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 53 | if (latitude != 0.0 && longitude != 0.0) { | |||
---|---|---|---|---|---|
60 | addr.setCountry(map.value("country").toString()); | 60 | addr.setCountry(map.value("country").toString()); | ||
61 | addr.setState(map.value("admin1").toString()); | 61 | addr.setState(map.value("admin1").toString()); | ||
62 | addr.setCity(map.value("admin2").toString()); | 62 | addr.setCity(map.value("admin2").toString()); | ||
63 | ii.location.setAddress(addr); | 63 | ii.location.setAddress(addr); | ||
64 | } | 64 | } | ||
65 | 65 | | |||
66 | ii.dateTime = extractor.dateTime(); | 66 | ii.dateTime = extractor.dateTime(); | ||
67 | if (ii.dateTime.isNull()) { | 67 | if (ii.dateTime.isNull()) { | ||
68 | ii.dateTime = QFileInfo(m_path).created(); | 68 | ii.dateTime = QFileInfo(m_path).birthTime(); | ||
69 | } | 69 | } | ||
70 | 70 | | |||
71 | QMetaObject::invokeMethod(ImageStorage::instance(), "addImage", Qt::AutoConnection, Q_ARG(const ImageInfo&, ii)); | 71 | QMetaObject::invokeMethod(ImageStorage::instance(), "addImage", Qt::AutoConnection, Q_ARG(const ImageInfo&, ii)); | ||
72 | 72 | | |||
73 | emit finished(); | 73 | emit finished(); | ||
74 | } | 74 | } |