Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit da5fd631 authored by Marcel Mathis's avatar Marcel Mathis Committed by Maik Qualmann

remove an unused function

parent fa7f3270
......@@ -231,12 +231,6 @@ protected:
public:
/**
* Returns Photo-metadata container with user-presentable information.
* These methods provide the reverse service: Not writing into the db, but reading from the db.
*/
static void fillMetadataContainer(qlonglong imageid, ImageMetadataContainer* const container);
/**
* Helper method to return official property name by which
* IPTC core properties are stored in the database (ItemCopyright and ImageProperties table).
......
......@@ -27,40 +27,6 @@
namespace Digikam
{
void ItemScanner::fillMetadataContainer(qlonglong imageid, ImageMetadataContainer* const container)
{
// read from database
QVariantList fields = CoreDbAccess().db()->getImageMetadata(imageid);
// check we have at least one valid field
container->allFieldsNull = !hasValidField(fields);
if (container->allFieldsNull)
{
return;
}
// DMetadata does all translation work
QStringList strings = DMetadata::valuesToString(fields, allImageMetadataFields());
// associate with hard-coded variables
container->make = strings.at(0);
container->model = strings.at(1);
container->lens = strings.at(2);
container->aperture = strings.at(3);
container->focalLength = strings.at(4);
container->focalLength35 = strings.at(5);
container->exposureTime = strings.at(6);
container->exposureProgram = strings.at(7);
container->exposureMode = strings.at(8);
container->sensitivity = strings.at(9);
container->flashMode = strings.at(10);
container->whiteBalance = strings.at(11);
container->whiteBalanceColorTemperature = strings.at(12);
container->meteringMode = strings.at(13);
container->subjectDistance = strings.at(14);
container->subjectDistanceCategory = strings.at(15);
}
QString ItemScanner::iptcCorePropertyName(MetadataInfo::Field field)
{
// These strings are specified in DBSCHEMA.ods
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment