summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:58:06 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:58:06 -0600
commit4ac20c8ffcd2991e864e2917ed605c85c3cd5af2 (patch)
treef33280134505db566b2e7b98b69d9361800f27fd
parent6955b7a8331113b3f313bda6a63597181c567026 (diff)
downloadlibkexiv2-4ac20c8f.tar.gz
libkexiv2-4ac20c8f.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 6955b7a8331113b3f313bda6a63597181c567026.
-rw-r--r--libkexiv2/libkexiv2/kexiv2.cpp20
-rw-r--r--libkexiv2/libkexiv2/kexiv2private.cpp6
-rw-r--r--libkexiv2/libkexiv2/kexiv2private.h2
3 files changed, 14 insertions, 14 deletions
diff --git a/libkexiv2/libkexiv2/kexiv2.cpp b/libkexiv2/libkexiv2/kexiv2.cpp
index 894025c..2989273 100644
--- a/libkexiv2/libkexiv2/kexiv2.cpp
+++ b/libkexiv2/libkexiv2/kexiv2.cpp
@@ -38,7 +38,7 @@ extern "C"
#include <tqfile.h>
#include <tqimage.h>
#include <tqsize.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <tqwmatrix.h>
#include <tqfileinfo.h>
#include <tqbuffer.h>
@@ -115,9 +115,9 @@ TQString KExiv2::Exiv2Version()
#if (EXIV2_TEST_VERSION(0,14,0))
return TQString(Exiv2::version());
#else
- return TQString("%1.%2.%3").arg(EXIV2_MAJOR_VERSION)
- .arg(EXIV2_MINOR_VERSION)
- .arg(EXIV2_PATCH_VERSION);
+ return TQString("%1.%2.%3").tqarg(EXIV2_MAJOR_VERSION)
+ .tqarg(EXIV2_MINOR_VERSION)
+ .tqarg(EXIV2_PATCH_VERSION);
#endif
}
@@ -1297,7 +1297,7 @@ TQString KExiv2::getExifTagString(const char* exifTagName, bool escapeCR) const
catch( Exiv2::Error &e )
{
d->printExiv2ExceptionError(TQString("Cannot find Exif key '%1' into image using Exiv2 ")
- .arg(exifTagName), e);
+ .tqarg(exifTagName), e);
}
return TQString();
@@ -1343,7 +1343,7 @@ TQString KExiv2::getIptcTagString(const char* iptcTagName, bool escapeCR) const
catch( Exiv2::Error &e )
{
d->printExiv2ExceptionError(TQString("Cannot find Iptc key '%1' into image using Exiv2 ")
- .arg(iptcTagName), e);
+ .tqarg(iptcTagName), e);
}
return TQString();
@@ -1383,7 +1383,7 @@ bool KExiv2::getExifTagLong(const char* exifTagName, long &val) const
catch( Exiv2::Error &e )
{
d->printExiv2ExceptionError(TQString("Cannot find Exif key '%1' into image using Exiv2 ")
- .arg(exifTagName), e);
+ .tqarg(exifTagName), e);
}
return false;
@@ -1413,7 +1413,7 @@ TQByteArray KExiv2::getExifTagData(const char* exifTagName) const
catch( Exiv2::Error &e )
{
d->printExiv2ExceptionError(TQString("Cannot find Exif key '%1' into image using Exiv2 ")
- .arg(exifTagName), e);
+ .tqarg(exifTagName), e);
}
return TQByteArray();
@@ -1437,7 +1437,7 @@ TQByteArray KExiv2::getIptcTagData(const char *iptcTagName) const
catch( Exiv2::Error &e )
{
d->printExiv2ExceptionError(TQString("Cannot find Iptc key '%1' into image using Exiv2 ")
- .arg(iptcTagName), e);
+ .tqarg(iptcTagName), e);
}
return TQByteArray();
@@ -1460,7 +1460,7 @@ bool KExiv2::getExifTagRational(const char *exifTagName, long int &num, long int
catch( Exiv2::Error &e )
{
d->printExiv2ExceptionError(TQString("Cannot find Exif Rational value from key '%1' "
- "into image using Exiv2 ").arg(exifTagName), e);
+ "into image using Exiv2 ").tqarg(exifTagName), e);
}
return false;
diff --git a/libkexiv2/libkexiv2/kexiv2private.cpp b/libkexiv2/libkexiv2/kexiv2private.cpp
index 65f03f0..180806b 100644
--- a/libkexiv2/libkexiv2/kexiv2private.cpp
+++ b/libkexiv2/libkexiv2/kexiv2private.cpp
@@ -157,7 +157,7 @@ TQString KExiv2Priv::convertCommentValue(const Exiv2::Exifdatum &exifDatum)
}
else if (charset == "\"Ascii\"")
{
- return TQString::fromLatin1(comment.c_str());
+ return TQString::tqfromLatin1(comment.c_str());
}
else
{
@@ -215,12 +215,12 @@ TQString KExiv2Priv::detectEncodingAndDecode(const std::string &value)
// workaround for bug #134999:
// The TQLatin15Codec may crash if strlen < value.length()
int length = value.length();
- if (localCodec->name() == TQString::fromLatin1("ISO 8859-15"))
+ if (localCodec->name() == TQString::tqfromLatin1("ISO 8859-15"))
length = strlen(value.c_str());
return localCodec->toUnicode(value.c_str(), length);
}
else
- return TQString::fromLatin1(value.c_str());
+ return TQString::tqfromLatin1(value.c_str());
}
} // NameSpace KExiv2Iface
diff --git a/libkexiv2/libkexiv2/kexiv2private.h b/libkexiv2/libkexiv2/kexiv2private.h
index 224482d..02a3ef3 100644
--- a/libkexiv2/libkexiv2/kexiv2private.h
+++ b/libkexiv2/libkexiv2/kexiv2private.h
@@ -38,7 +38,7 @@
#include <tqfile.h>
#include <tqsize.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <tqwmatrix.h>
#include <tqfileinfo.h>