void IPTCSubjects::applyMetadata(QByteArray& iptcData) { DMetadata meta; meta.setIptc(iptcData); QStringList newSubjects = subjectsList(); if (m_subjectsCheck->isChecked()) meta.setIptcSubjects(meta.getIptcSubjects(), newSubjects); else meta.setIptcSubjects(meta.getIptcSubjects(), QStringList()); iptcData = meta.getIptc(); }
void IPTCSubjects::readMetadata(QByteArray& iptcData) { DMetadata meta; meta.setIptc(iptcData); setSubjectsList(meta.getIptcSubjects()); }