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