diff options
author | Timothy Pearson <[email protected]> | 2011-12-16 09:56:31 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-16 09:56:31 -0600 |
commit | c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54 (patch) | |
tree | 1ee1912ac4bb966475f0db0f2a78678661b4b4a5 /chalk/core/kis_exif_value.cc | |
parent | 94844816550ad672ccfcdc25659c625546239998 (diff) | |
download | koffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.tar.gz koffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.zip |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 94844816550ad672ccfcdc25659c625546239998.
Diffstat (limited to 'chalk/core/kis_exif_value.cc')
-rw-r--r-- | chalk/core/kis_exif_value.cc | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/chalk/core/kis_exif_value.cc b/chalk/core/kis_exif_value.cc index 1981bd02..043bf4e3 100644 --- a/chalk/core/kis_exif_value.cc +++ b/chalk/core/kis_exif_value.cc @@ -157,7 +157,7 @@ bool ExifValue::load(const TQDomElement& elmt) case EXIF_TYPE_BYTE: for(uint i = 0; i < components(); i++) { - if( (attr = elmt.attribute(TQString("value%1").arg(i) ) ).isNull() ) + if( (attr = elmt.attribute(TQString("value%1").tqarg(i) ) ).isNull() ) { setValue(i, (TQ_UINT8)0); } else { @@ -171,7 +171,7 @@ bool ExifValue::load(const TQDomElement& elmt) case EXIF_TYPE_SHORT: for(uint i = 0; i < components(); i++) { - if( (attr = elmt.attribute(TQString("value%1").arg(i) ) ).isNull() ) + if( (attr = elmt.attribute(TQString("value%1").tqarg(i) ) ).isNull() ) { setValue(i, (TQ_UINT16)0); } else { @@ -182,7 +182,7 @@ bool ExifValue::load(const TQDomElement& elmt) case EXIF_TYPE_LONG: for(uint i = 0; i < components(); i++) { - if( (attr = elmt.attribute(TQString("value%1").arg(i) ) ).isNull() ) + if( (attr = elmt.attribute(TQString("value%1").tqarg(i) ) ).isNull() ) { setValue(i, (TQ_UINT32)0); } else { @@ -194,13 +194,13 @@ bool ExifValue::load(const TQDomElement& elmt) for(uint i = 0; i < components(); i++) { KisExifRational r; - if( (attr = elmt.attribute(TQString("numerator%1").arg(i) ) ).isNull() ) + if( (attr = elmt.attribute(TQString("numerator%1").tqarg(i) ) ).isNull() ) { r.numerator = (TQ_UINT32)0; } else { r.numerator = (TQ_UINT32) attr.toUInt(); } - if( (attr = elmt.attribute(TQString("denominator%1").arg(i) ) ).isNull() ) + if( (attr = elmt.attribute(TQString("denominator%1").tqarg(i) ) ).isNull() ) { r.denominator = (TQ_UINT32)0; } else { @@ -212,7 +212,7 @@ bool ExifValue::load(const TQDomElement& elmt) case EXIF_TYPE_SBYTE: for(uint i = 0; i < components(); i++) { - if( (attr = elmt.attribute(TQString("value%1").arg(i) ) ).isNull() ) + if( (attr = elmt.attribute(TQString("value%1").tqarg(i) ) ).isNull() ) { setValue(i, (TQ_INT8)0); } else { @@ -233,7 +233,7 @@ bool ExifValue::load(const TQDomElement& elmt) case EXIF_TYPE_SSHORT: for(uint i = 0; i < components(); i++) { - if( (attr = elmt.attribute(TQString("value%1").arg(i) ) ).isNull() ) + if( (attr = elmt.attribute(TQString("value%1").tqarg(i) ) ).isNull() ) { setValue(i, (TQ_INT16)0); } else { @@ -244,7 +244,7 @@ bool ExifValue::load(const TQDomElement& elmt) case EXIF_TYPE_SLONG: for(uint i = 0; i < components(); i++) { - if( (attr = elmt.attribute(TQString("value%1").arg(i) ) ).isNull() ) + if( (attr = elmt.attribute(TQString("value%1").tqarg(i) ) ).isNull() ) { setValue(i, (TQ_INT32)0); } else { @@ -256,13 +256,13 @@ bool ExifValue::load(const TQDomElement& elmt) for(uint i = 0; i < components(); i++) { KisExifSRational r; - if( (attr = elmt.attribute(TQString("numerator%1").arg(i) ) ).isNull() ) + if( (attr = elmt.attribute(TQString("numerator%1").tqarg(i) ) ).isNull() ) { r.numerator = (TQ_INT32)0; } else { r.numerator = (TQ_INT32) attr.toInt(); } - if( (attr = elmt.attribute(TQString("denominator%1").arg(i) ) ).isNull() ) + if( (attr = elmt.attribute(TQString("denominator%1").tqarg(i) ) ).isNull() ) { r.denominator = (TQ_UINT32)0; } else { @@ -274,7 +274,7 @@ bool ExifValue::load(const TQDomElement& elmt) case EXIF_TYPE_FLOAT: for(uint i = 0; i < components(); i++) { - if( (attr = elmt.attribute(TQString("value%1").arg(i) ) ).isNull() ) + if( (attr = elmt.attribute(TQString("value%1").tqarg(i) ) ).isNull() ) { setValue(i, (float)0); } else { @@ -285,7 +285,7 @@ bool ExifValue::load(const TQDomElement& elmt) case EXIF_TYPE_DOUBLE: for(uint i = 0; i < components(); i++) { - if( (attr = elmt.attribute(TQString("value%1").arg(i) ) ).isNull() ) + if( (attr = elmt.attribute(TQString("value%1").tqarg(i) ) ).isNull() ) { setValue(i, (double)0); } else { @@ -310,65 +310,65 @@ TQDomElement ExifValue::save(TQDomDocument& doc) { case EXIF_TYPE_BYTE: for(uint i = 0; i < components(); i++) - elmt.setAttribute(TQString("value%1").arg(i), asByte( i ) ); + elmt.setAttribute(TQString("value%1").tqarg(i), asByte( i ) ); break; case EXIF_TYPE_ASCII: elmt.setAttribute("value", asAscii() ); break; case EXIF_TYPE_SHORT: for(uint i = 0; i < components(); i++) - elmt.setAttribute(TQString("value%1").arg(i), asShort( i ) ); + elmt.setAttribute(TQString("value%1").tqarg(i), asShort( i ) ); break; case EXIF_TYPE_LONG: for(uint i = 0; i < components(); i++) - elmt.setAttribute(TQString("value%1").arg(i), asLong( i ) ); + elmt.setAttribute(TQString("value%1").tqarg(i), asLong( i ) ); break; case EXIF_TYPE_RATIONAL: for(uint i = 0; i < components(); i++) { KisExifRational r = asRational(i); - elmt.setAttribute(TQString("numerator%1").arg(i), r.numerator ); - elmt.setAttribute(TQString("denominator%1").arg(i), r.denominator ); + elmt.setAttribute(TQString("numerator%1").tqarg(i), r.numerator ); + elmt.setAttribute(TQString("denominator%1").tqarg(i), r.denominator ); } break; case EXIF_TYPE_SBYTE: for(uint i = 0; i < components(); i++) - elmt.setAttribute(TQString("value%1").arg(i), asSByte( i ) ); + elmt.setAttribute(TQString("value%1").tqarg(i), asSByte( i ) ); break; case EXIF_TYPE_UNDEFINED: { UByteArray value = asUndefined(); TQByteArray data; data.setRawData((char*)value.data(), value.size()); - TQByteArray encodedData; - KCodecs::base64Encode( data, encodedData ); + TQByteArray tqencodedData; + KCodecs::base64Encode( data, tqencodedData ); data.resetRawData( (char*)value.data(), value.size()); - elmt.setAttribute("value", TQString(encodedData)); + elmt.setAttribute("value", TQString(tqencodedData)); } break; case EXIF_TYPE_SSHORT: for(uint i = 0; i < components(); i++) - elmt.setAttribute(TQString("value%1").arg(i), asSShort( i ) ); + elmt.setAttribute(TQString("value%1").tqarg(i), asSShort( i ) ); break; case EXIF_TYPE_SLONG: for(uint i = 0; i < components(); i++) - elmt.setAttribute(TQString("value%1").arg(i), asSLong( i ) ); + elmt.setAttribute(TQString("value%1").tqarg(i), asSLong( i ) ); break; case EXIF_TYPE_SRATIONAL: for(uint i = 0; i < components(); i++) { KisExifSRational r = asSRational(i); - elmt.setAttribute(TQString("numerator%1").arg(i), r.numerator ); - elmt.setAttribute(TQString("denominator%1").arg(i), r.denominator ); + elmt.setAttribute(TQString("numerator%1").tqarg(i), r.numerator ); + elmt.setAttribute(TQString("denominator%1").tqarg(i), r.denominator ); } break; case EXIF_TYPE_FLOAT: for(uint i = 0; i < components(); i++) - elmt.setAttribute(TQString("value%1").arg(i), asFloat( i ) ); + elmt.setAttribute(TQString("value%1").tqarg(i), asFloat( i ) ); break; case EXIF_TYPE_DOUBLE: for(uint i = 0; i < components(); i++) - elmt.setAttribute(TQString("value%1").arg(i), asDouble( i ) ); + elmt.setAttribute(TQString("value%1").tqarg(i), asDouble( i ) ); break; case EXIF_TYPE_UNKNOW: break; @@ -660,25 +660,25 @@ TQString ExifValue::toString(uint i) switch(type()) { case EXIF_TYPE_BYTE: - return TQString("%1 ").arg( asExifNumber( i ).m_byte ); + return TQString("%1 ").tqarg( asExifNumber( i ).m_byte ); case EXIF_TYPE_SHORT: - return TQString("%1 ").arg( asExifNumber( i ).m_short ); + return TQString("%1 ").tqarg( asExifNumber( i ).m_short ); case EXIF_TYPE_LONG: - return TQString("%1 ").arg( asExifNumber( i ).m_long ); + return TQString("%1 ").tqarg( asExifNumber( i ).m_long ); case EXIF_TYPE_RATIONAL: - return TQString("%1 / %2 ").arg( asExifNumber( i ).m_rational.numerator ).arg( asExifNumber( i ).m_rational.denominator ); + return TQString("%1 / %2 ").tqarg( asExifNumber( i ).m_rational.numerator ).tqarg( asExifNumber( i ).m_rational.denominator ); case EXIF_TYPE_SBYTE: - return TQString("%1 ").arg( asExifNumber( i ).m_sbyte ); + return TQString("%1 ").tqarg( asExifNumber( i ).m_sbyte ); case EXIF_TYPE_SSHORT: - return TQString("%1 ").arg( asExifNumber( i ).m_sshort ); + return TQString("%1 ").tqarg( asExifNumber( i ).m_sshort ); case EXIF_TYPE_SLONG: - return TQString("%1 ").arg( asExifNumber( i ).m_slong ); + return TQString("%1 ").tqarg( asExifNumber( i ).m_slong ); case EXIF_TYPE_SRATIONAL: - return TQString("%1 / %2 ").arg( asExifNumber( i ).m_srational.numerator ).arg( asExifNumber( i ).m_srational.denominator ); + return TQString("%1 / %2 ").tqarg( asExifNumber( i ).m_srational.numerator ).tqarg( asExifNumber( i ).m_srational.denominator ); case EXIF_TYPE_FLOAT: - return TQString("%1 ").arg( asExifNumber( i ).m_float ); + return TQString("%1 ").tqarg( asExifNumber( i ).m_float ); case EXIF_TYPE_DOUBLE: - return TQString("%1 ").arg( asExifNumber( i ).m_double ); + return TQString("%1 ").tqarg( asExifNumber( i ).m_double ); default: return "unknow "; } |