|
|
|
@ -318,7 +318,7 @@ void IPTCDateTime::readMetadata(TQByteArray& iptcData)
|
|
|
|
|
d->dateCreatedCheck->setChecked(false);
|
|
|
|
|
if (!dateStr.isEmpty())
|
|
|
|
|
{
|
|
|
|
|
date = TQDate::fromString(dateStr, Qt::ISODate);
|
|
|
|
|
date = TQDate::fromString(dateStr, TQt::ISODate);
|
|
|
|
|
if (date.isValid())
|
|
|
|
|
{
|
|
|
|
|
d->dateCreatedSel->setDate(date);
|
|
|
|
@ -333,7 +333,7 @@ void IPTCDateTime::readMetadata(TQByteArray& iptcData)
|
|
|
|
|
d->timeCreatedCheck->setChecked(false);
|
|
|
|
|
if (!timeStr.isEmpty())
|
|
|
|
|
{
|
|
|
|
|
time = TQTime::fromString(timeStr, Qt::ISODate);
|
|
|
|
|
time = TQTime::fromString(timeStr, TQt::ISODate);
|
|
|
|
|
if (time.isValid())
|
|
|
|
|
{
|
|
|
|
|
d->timeCreatedSel->setTime(time);
|
|
|
|
@ -349,7 +349,7 @@ void IPTCDateTime::readMetadata(TQByteArray& iptcData)
|
|
|
|
|
d->dateReleasedCheck->setChecked(false);
|
|
|
|
|
if (!dateStr.isEmpty())
|
|
|
|
|
{
|
|
|
|
|
date = TQDate::fromString(dateStr, Qt::ISODate);
|
|
|
|
|
date = TQDate::fromString(dateStr, TQt::ISODate);
|
|
|
|
|
if (date.isValid())
|
|
|
|
|
{
|
|
|
|
|
d->dateReleasedSel->setDate(date);
|
|
|
|
@ -362,7 +362,7 @@ void IPTCDateTime::readMetadata(TQByteArray& iptcData)
|
|
|
|
|
d->timeReleasedCheck->setChecked(false);
|
|
|
|
|
if (!timeStr.isEmpty())
|
|
|
|
|
{
|
|
|
|
|
time = TQTime::fromString(timeStr, Qt::ISODate);
|
|
|
|
|
time = TQTime::fromString(timeStr, TQt::ISODate);
|
|
|
|
|
if (time.isValid())
|
|
|
|
|
{
|
|
|
|
|
d->timeReleasedSel->setTime(time);
|
|
|
|
@ -378,7 +378,7 @@ void IPTCDateTime::readMetadata(TQByteArray& iptcData)
|
|
|
|
|
d->dateExpiredCheck->setChecked(false);
|
|
|
|
|
if (!dateStr.isEmpty())
|
|
|
|
|
{
|
|
|
|
|
date = TQDate::fromString(dateStr, Qt::ISODate);
|
|
|
|
|
date = TQDate::fromString(dateStr, TQt::ISODate);
|
|
|
|
|
if (date.isValid())
|
|
|
|
|
{
|
|
|
|
|
d->dateExpiredSel->setDate(date);
|
|
|
|
@ -391,7 +391,7 @@ void IPTCDateTime::readMetadata(TQByteArray& iptcData)
|
|
|
|
|
d->timeExpiredCheck->setChecked(false);
|
|
|
|
|
if (!timeStr.isEmpty())
|
|
|
|
|
{
|
|
|
|
|
time = TQTime::fromString(timeStr, Qt::ISODate);
|
|
|
|
|
time = TQTime::fromString(timeStr, TQt::ISODate);
|
|
|
|
|
if (time.isValid())
|
|
|
|
|
{
|
|
|
|
|
d->timeExpiredSel->setTime(time);
|
|
|
|
@ -407,7 +407,7 @@ void IPTCDateTime::readMetadata(TQByteArray& iptcData)
|
|
|
|
|
d->dateDigitalizedCheck->setChecked(false);
|
|
|
|
|
if (!dateStr.isEmpty())
|
|
|
|
|
{
|
|
|
|
|
date = TQDate::fromString(dateStr, Qt::ISODate);
|
|
|
|
|
date = TQDate::fromString(dateStr, TQt::ISODate);
|
|
|
|
|
if (date.isValid())
|
|
|
|
|
{
|
|
|
|
|
d->dateDigitalizedSel->setDate(date);
|
|
|
|
@ -420,7 +420,7 @@ void IPTCDateTime::readMetadata(TQByteArray& iptcData)
|
|
|
|
|
d->timeDigitalizedCheck->setChecked(false);
|
|
|
|
|
if (!timeStr.isEmpty())
|
|
|
|
|
{
|
|
|
|
|
time = TQTime::fromString(timeStr, Qt::ISODate);
|
|
|
|
|
time = TQTime::fromString(timeStr, TQt::ISODate);
|
|
|
|
|
if (time.isValid())
|
|
|
|
|
{
|
|
|
|
|
d->timeDigitalizedSel->setTime(time);
|
|
|
|
@ -441,7 +441,7 @@ void IPTCDateTime::applyMetadata(TQByteArray& exifData, TQByteArray& iptcData)
|
|
|
|
|
if (d->dateCreatedCheck->isChecked())
|
|
|
|
|
{
|
|
|
|
|
exiv2Iface.setIptcTagString("Iptc.Application2.DateCreated",
|
|
|
|
|
d->dateCreatedSel->date().toString(Qt::ISODate));
|
|
|
|
|
d->dateCreatedSel->date().toString(TQt::ISODate));
|
|
|
|
|
if (syncEXIFDateIsChecked())
|
|
|
|
|
{
|
|
|
|
|
exiv2Iface.setExifTagString("Exif.Image.DateTime",
|
|
|
|
@ -453,43 +453,43 @@ void IPTCDateTime::applyMetadata(TQByteArray& exifData, TQByteArray& iptcData)
|
|
|
|
|
|
|
|
|
|
if (d->dateReleasedCheck->isChecked())
|
|
|
|
|
exiv2Iface.setIptcTagString("Iptc.Application2.ReleaseDate",
|
|
|
|
|
d->dateReleasedSel->date().toString(Qt::ISODate));
|
|
|
|
|
d->dateReleasedSel->date().toString(TQt::ISODate));
|
|
|
|
|
else
|
|
|
|
|
exiv2Iface.removeIptcTag("Iptc.Application2.ReleaseDate");
|
|
|
|
|
|
|
|
|
|
if (d->dateExpiredCheck->isChecked())
|
|
|
|
|
exiv2Iface.setIptcTagString("Iptc.Application2.ExpirationDate",
|
|
|
|
|
d->dateExpiredSel->date().toString(Qt::ISODate));
|
|
|
|
|
d->dateExpiredSel->date().toString(TQt::ISODate));
|
|
|
|
|
else
|
|
|
|
|
exiv2Iface.removeIptcTag("Iptc.Application2.ExpirationDate");
|
|
|
|
|
|
|
|
|
|
if (d->dateDigitalizedCheck->isChecked())
|
|
|
|
|
exiv2Iface.setIptcTagString("Iptc.Application2.DigitizationDate",
|
|
|
|
|
d->dateDigitalizedSel->date().toString(Qt::ISODate));
|
|
|
|
|
d->dateDigitalizedSel->date().toString(TQt::ISODate));
|
|
|
|
|
else
|
|
|
|
|
exiv2Iface.removeIptcTag("Iptc.Application2.DigitizationDate");
|
|
|
|
|
|
|
|
|
|
if (d->timeCreatedCheck->isChecked())
|
|
|
|
|
exiv2Iface.setIptcTagString("Iptc.Application2.TimeCreated",
|
|
|
|
|
d->timeCreatedSel->time().toString(Qt::ISODate));
|
|
|
|
|
d->timeCreatedSel->time().toString(TQt::ISODate));
|
|
|
|
|
else
|
|
|
|
|
exiv2Iface.removeIptcTag("Iptc.Application2.TimeCreated");
|
|
|
|
|
|
|
|
|
|
if (d->timeReleasedCheck->isChecked())
|
|
|
|
|
exiv2Iface.setIptcTagString("Iptc.Application2.ReleaseTime",
|
|
|
|
|
d->timeReleasedSel->time().toString(Qt::ISODate));
|
|
|
|
|
d->timeReleasedSel->time().toString(TQt::ISODate));
|
|
|
|
|
else
|
|
|
|
|
exiv2Iface.removeIptcTag("Iptc.Application2.ReleaseTime");
|
|
|
|
|
|
|
|
|
|
if (d->timeExpiredCheck->isChecked())
|
|
|
|
|
exiv2Iface.setIptcTagString("Iptc.Application2.ExpirationTime",
|
|
|
|
|
d->timeExpiredSel->time().toString(Qt::ISODate));
|
|
|
|
|
d->timeExpiredSel->time().toString(TQt::ISODate));
|
|
|
|
|
else
|
|
|
|
|
exiv2Iface.removeIptcTag("Iptc.Application2.ExpirationTime");
|
|
|
|
|
|
|
|
|
|
if (d->timeDigitalizedCheck->isChecked())
|
|
|
|
|
exiv2Iface.setIptcTagString("Iptc.Application2.DigitizationTime",
|
|
|
|
|
d->timeDigitalizedSel->time().toString(Qt::ISODate));
|
|
|
|
|
d->timeDigitalizedSel->time().toString(TQt::ISODate));
|
|
|
|
|
else
|
|
|
|
|
exiv2Iface.removeIptcTag("Iptc.Application2.DigitizationTime");
|
|
|
|
|
|
|
|
|
|