feat: use libexiv2 to obtain more image metadata

This commit is contained in:
Gary Wang
2020-11-15 19:53:47 +08:00
parent 8c152dc862
commit 5705f02636
8 changed files with 218 additions and 7 deletions

View File

@ -3,6 +3,7 @@
#include <QAbstractItemModel>
class Exiv2Wrapper;
class MetadataModel : public QAbstractItemModel
{
Q_OBJECT
@ -18,6 +19,8 @@ public:
bool appendProperty(const QString & sectionKey, const QString & propertyKey,
const QString & propertyDisplayName, const QString & propertyValue = QString());
bool updateProperty(const QString & propertyKey, const QString & propertyValue);
bool appendExivPropertyIfExist(const Exiv2Wrapper & wrapper, const QString & sectionKey,
const QString & exiv2propertyKey, const QString & propertyDisplayName = QString());
private:
enum RowType : quintptr {