Changeset View
Changeset View
Standalone View
Standalone View
lib/imagemetainfomodel.cpp
Context not available. | |||||
41 | #include "urlutils.h" | 41 | #include "urlutils.h" | ||
---|---|---|---|---|---|
42 | #endif | 42 | #endif | ||
43 | 43 | | |||
44 | #include "exiv2imageloader.h" | ||||
45 | | ||||
44 | namespace Gwenview | 46 | namespace Gwenview | ||
45 | { | 47 | { | ||
46 | 48 | | |||
Context not available. | |||||
419 | d->setGroupEntryValue(GeneralGroup, QStringLiteral("General.ImageSize"), imageSize); | 421 | d->setGroupEntryValue(GeneralGroup, QStringLiteral("General.ImageSize"), imageSize); | ||
420 | } | 422 | } | ||
421 | 423 | | |||
422 | void ImageMetaInfoModel::setExiv2Image(const Exiv2::Image* image) | 424 | void ImageMetaInfoModel::setExiv2Image(const Exiv2ImageLoader* exivContent) | ||
423 | { | 425 | { | ||
424 | MetaInfoGroup* exifGroup = d->mMetaInfoGroupVector[ExifGroup]; | 426 | MetaInfoGroup* exifGroup = d->mMetaInfoGroupVector[ExifGroup]; | ||
425 | MetaInfoGroup* iptcGroup = d->mMetaInfoGroupVector[IptcGroup]; | 427 | MetaInfoGroup* iptcGroup = d->mMetaInfoGroupVector[IptcGroup]; | ||
Context not available. | |||||
431 | d->clearGroup(iptcGroup, iptcIndex); | 433 | d->clearGroup(iptcGroup, iptcIndex); | ||
432 | d->clearGroup(xmpGroup, xmpIndex); | 434 | d->clearGroup(xmpGroup, xmpIndex); | ||
433 | 435 | | |||
434 | if (!image) { | 436 | if (!exivContent) { | ||
435 | return; | 437 | return; | ||
436 | } | 438 | } | ||
437 | 439 | | |||
440 | const Exiv2::Image* image = exivContent->handle(); | ||||
438 | d->setGroupEntryValue(GeneralGroup, QStringLiteral("General.Comment"), QString::fromUtf8(image->comment().c_str())); | 441 | d->setGroupEntryValue(GeneralGroup, QStringLiteral("General.Comment"), QString::fromUtf8(image->comment().c_str())); | ||
439 | 442 | | |||
440 | if (image->checkMode(Exiv2::mdExif) & Exiv2::amRead) { | 443 | if (image->checkMode(Exiv2::mdExif) & Exiv2::amRead) { | ||
Context not available. |