diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /krita/core/kis_exif_value.cc | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'krita/core/kis_exif_value.cc')
-rw-r--r-- | krita/core/kis_exif_value.cc | 188 |
1 files changed, 94 insertions, 94 deletions
diff --git a/krita/core/kis_exif_value.cc b/krita/core/kis_exif_value.cc index 25e78208..fb1cdd03 100644 --- a/krita/core/kis_exif_value.cc +++ b/krita/core/kis_exif_value.cc @@ -24,7 +24,7 @@ #include <kmdcodec.h> namespace { -void set16Bit (unsigned char *data, ExifValue::ByteOrder order, const Q_UINT16* value) +void set16Bit (unsigned char *data, ExifValue::ByteOrder order, const TQ_UINT16* value) { switch (order) { case ExifValue::BYTE_ORDER_MOTOROLA: @@ -38,7 +38,7 @@ void set16Bit (unsigned char *data, ExifValue::ByteOrder order, const Q_UINT16* } } -void get16Bit (const unsigned char *data, ExifValue::ByteOrder order, Q_UINT16* value) +void get16Bit (const unsigned char *data, ExifValue::ByteOrder order, TQ_UINT16* value) { switch (order) { case ExifValue::BYTE_ORDER_MOTOROLA: @@ -50,7 +50,7 @@ void get16Bit (const unsigned char *data, ExifValue::ByteOrder order, Q_UINT16* } } -void get32Bit (const unsigned char *data, ExifValue::ByteOrder order, Q_UINT32* value) +void get32Bit (const unsigned char *data, ExifValue::ByteOrder order, TQ_UINT32* value) { switch (order) { case ExifValue::BYTE_ORDER_MOTOROLA: @@ -61,7 +61,7 @@ void get32Bit (const unsigned char *data, ExifValue::ByteOrder order, Q_UINT32* } } -void set32Bit(unsigned char *data, ExifValue::ByteOrder order, const Q_UINT32* value) +void set32Bit(unsigned char *data, ExifValue::ByteOrder order, const TQ_UINT32* value) { switch (order) { case ExifValue::BYTE_ORDER_MOTOROLA: @@ -79,18 +79,18 @@ void set32Bit(unsigned char *data, ExifValue::ByteOrder order, const Q_UINT32* v } } -void get64Bit (const unsigned char *data, ExifValue::ByteOrder order, Q_UINT64* value) +void get64Bit (const unsigned char *data, ExifValue::ByteOrder order, TQ_UINT64* value) { switch (order) { case ExifValue::BYTE_ORDER_MOTOROLA: - *value = (((Q_UINT64)data[0] << 56) | ((Q_UINT64)data[1] << 48) | ((Q_UINT64)data[2] << 40) | ((Q_UINT64)data[3] << 32) | ((Q_UINT64)data[4] << 24) | ((Q_UINT64)data[5] << 16) | ((Q_UINT64)data[6] << 8) | (Q_UINT64)data[7]); + *value = (((TQ_UINT64)data[0] << 56) | ((TQ_UINT64)data[1] << 48) | ((TQ_UINT64)data[2] << 40) | ((TQ_UINT64)data[3] << 32) | ((TQ_UINT64)data[4] << 24) | ((TQ_UINT64)data[5] << 16) | ((TQ_UINT64)data[6] << 8) | (TQ_UINT64)data[7]); break; case ExifValue::BYTE_ORDER_INTEL: - *value = (((Q_UINT64)data[7] << 56) | ((Q_UINT64)data[6] << 48) | ((Q_UINT64)data[5] << 40) | ((Q_UINT64)data[4] << 32) | ((Q_UINT64)data[3] << 24) | ((Q_UINT64)data[2] << 16) | ((Q_UINT64)data[1] << 8) | (Q_UINT64)data[0]); + *value = (((TQ_UINT64)data[7] << 56) | ((TQ_UINT64)data[6] << 48) | ((TQ_UINT64)data[5] << 40) | ((TQ_UINT64)data[4] << 32) | ((TQ_UINT64)data[3] << 24) | ((TQ_UINT64)data[2] << 16) | ((TQ_UINT64)data[1] << 8) | (TQ_UINT64)data[0]); } } -void set64Bit(unsigned char *data, ExifValue::ByteOrder order, const Q_UINT64* value) +void set64Bit(unsigned char *data, ExifValue::ByteOrder order, const TQ_UINT64* value) { switch (order) { case ExifValue::BYTE_ORDER_MOTOROLA: @@ -132,16 +132,16 @@ void ExifValue::allocData() m_value = new ExifNumber[components()]; } else if ( type() == EXIF_TYPE_ASCII ) { - m_value = new QString(); + m_value = new TQString(); } else if ( type() == EXIF_TYPE_UNDEFINED) { m_value = new UByteArray(); } } -bool ExifValue::load(const QDomElement& elmt) +bool ExifValue::load(const TQDomElement& elmt) { - QString attr; + TQString attr; if( (attr = elmt.attribute("ifd")).isNull() ) return false; m_ifd = attr.toInt(); @@ -157,11 +157,11 @@ bool ExifValue::load(const QDomElement& elmt) case EXIF_TYPE_BYTE: for(uint i = 0; i < components(); i++) { - if( (attr = elmt.attribute(QString("value%1").arg(i) ) ).isNull() ) + if( (attr = elmt.attribute(TQString("value%1").tqarg(i) ) ).isNull() ) { - setValue(i, (Q_UINT8)0); + setValue(i, (TQ_UINT8)0); } else { - setValue(i, (Q_UINT8) attr.toUInt()); + setValue(i, (TQ_UINT8) attr.toUInt()); } } break; @@ -171,22 +171,22 @@ bool ExifValue::load(const QDomElement& elmt) case EXIF_TYPE_SHORT: for(uint i = 0; i < components(); i++) { - if( (attr = elmt.attribute(QString("value%1").arg(i) ) ).isNull() ) + if( (attr = elmt.attribute(TQString("value%1").tqarg(i) ) ).isNull() ) { - setValue(i, (Q_UINT16)0); + setValue(i, (TQ_UINT16)0); } else { - setValue(i, (Q_UINT16) attr.toUInt()); + setValue(i, (TQ_UINT16) attr.toUInt()); } } break; case EXIF_TYPE_LONG: for(uint i = 0; i < components(); i++) { - if( (attr = elmt.attribute(QString("value%1").arg(i) ) ).isNull() ) + if( (attr = elmt.attribute(TQString("value%1").tqarg(i) ) ).isNull() ) { - setValue(i, (Q_UINT32)0); + setValue(i, (TQ_UINT32)0); } else { - setValue(i, (Q_UINT32) attr.toUInt()); + setValue(i, (TQ_UINT32) attr.toUInt()); } } break; @@ -194,17 +194,17 @@ bool ExifValue::load(const QDomElement& elmt) for(uint i = 0; i < components(); i++) { KisExifRational r; - if( (attr = elmt.attribute(QString("numerator%1").arg(i) ) ).isNull() ) + if( (attr = elmt.attribute(TQString("numerator%1").tqarg(i) ) ).isNull() ) { - r.numerator = (Q_UINT32)0; + r.numerator = (TQ_UINT32)0; } else { - r.numerator = (Q_UINT32) attr.toUInt(); + r.numerator = (TQ_UINT32) attr.toUInt(); } - if( (attr = elmt.attribute(QString("denominator%1").arg(i) ) ).isNull() ) + if( (attr = elmt.attribute(TQString("denominator%1").tqarg(i) ) ).isNull() ) { - r.denominator = (Q_UINT32)0; + r.denominator = (TQ_UINT32)0; } else { - r.denominator = (Q_UINT32) attr.toUInt(); + r.denominator = (TQ_UINT32) attr.toUInt(); } setValue(i, r); } @@ -212,19 +212,19 @@ bool ExifValue::load(const QDomElement& elmt) case EXIF_TYPE_SBYTE: for(uint i = 0; i < components(); i++) { - if( (attr = elmt.attribute(QString("value%1").arg(i) ) ).isNull() ) + if( (attr = elmt.attribute(TQString("value%1").tqarg(i) ) ).isNull() ) { - setValue(i, (Q_INT8)0); + setValue(i, (TQ_INT8)0); } else { - setValue(i, (Q_INT8) attr.toInt()); + setValue(i, (TQ_INT8) attr.toInt()); } } break; case EXIF_TYPE_UNDEFINED: { - QString instr = elmt.attribute("value"); - QByteArray out; - QByteArray in = instr.utf8(); + TQString instr = elmt.attribute("value"); + TQByteArray out; + TQByteArray in = instr.utf8(); KCodecs::base64Decode( in, out); out.resize(out.size() - 2 ); setAsUndefined((uchar*)out.data(), out.size() ); @@ -233,22 +233,22 @@ bool ExifValue::load(const QDomElement& elmt) case EXIF_TYPE_SSHORT: for(uint i = 0; i < components(); i++) { - if( (attr = elmt.attribute(QString("value%1").arg(i) ) ).isNull() ) + if( (attr = elmt.attribute(TQString("value%1").tqarg(i) ) ).isNull() ) { - setValue(i, (Q_INT16)0); + setValue(i, (TQ_INT16)0); } else { - setValue(i, (Q_INT16) attr.toInt()); + setValue(i, (TQ_INT16) attr.toInt()); } } break; case EXIF_TYPE_SLONG: for(uint i = 0; i < components(); i++) { - if( (attr = elmt.attribute(QString("value%1").arg(i) ) ).isNull() ) + if( (attr = elmt.attribute(TQString("value%1").tqarg(i) ) ).isNull() ) { - setValue(i, (Q_INT32)0); + setValue(i, (TQ_INT32)0); } else { - setValue(i, (Q_INT32) attr.toInt()); + setValue(i, (TQ_INT32) attr.toInt()); } } break; @@ -256,17 +256,17 @@ bool ExifValue::load(const QDomElement& elmt) for(uint i = 0; i < components(); i++) { KisExifSRational r; - if( (attr = elmt.attribute(QString("numerator%1").arg(i) ) ).isNull() ) + if( (attr = elmt.attribute(TQString("numerator%1").tqarg(i) ) ).isNull() ) { - r.numerator = (Q_INT32)0; + r.numerator = (TQ_INT32)0; } else { - r.numerator = (Q_INT32) attr.toInt(); + r.numerator = (TQ_INT32) attr.toInt(); } - if( (attr = elmt.attribute(QString("denominator%1").arg(i) ) ).isNull() ) + if( (attr = elmt.attribute(TQString("denominator%1").tqarg(i) ) ).isNull() ) { - r.denominator = (Q_UINT32)0; + r.denominator = (TQ_UINT32)0; } else { - r.denominator = (Q_UINT32) attr.toInt(); + r.denominator = (TQ_UINT32) attr.toInt(); } setValue(i, r); } @@ -274,7 +274,7 @@ bool ExifValue::load(const QDomElement& elmt) case EXIF_TYPE_FLOAT: for(uint i = 0; i < components(); i++) { - if( (attr = elmt.attribute(QString("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 QDomElement& elmt) case EXIF_TYPE_DOUBLE: for(uint i = 0; i < components(); i++) { - if( (attr = elmt.attribute(QString("value%1").arg(i) ) ).isNull() ) + if( (attr = elmt.attribute(TQString("value%1").tqarg(i) ) ).isNull() ) { setValue(i, (double)0); } else { @@ -300,9 +300,9 @@ bool ExifValue::load(const QDomElement& elmt) return true; } -QDomElement ExifValue::save(QDomDocument& doc) +TQDomElement ExifValue::save(TQDomDocument& doc) { - QDomElement elmt = doc.createElement("ExifValue"); + TQDomElement elmt = doc.createElement("ExifValue"); elmt.setAttribute("ifd", ifd()); elmt.setAttribute("components", components() ); elmt.setAttribute("type", type() ); @@ -310,65 +310,65 @@ QDomElement ExifValue::save(QDomDocument& doc) { case EXIF_TYPE_BYTE: for(uint i = 0; i < components(); i++) - elmt.setAttribute(QString("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(QString("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(QString("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(QString("numerator%1").arg(i), r.numerator ); - elmt.setAttribute(QString("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(QString("value%1").arg(i), asSByte( i ) ); + elmt.setAttribute(TQString("value%1").tqarg(i), asSByte( i ) ); break; case EXIF_TYPE_UNDEFINED: { UByteArray value = asUndefined(); - QByteArray data; + TQByteArray data; data.setRawData((char*)value.data(), value.size()); - QByteArray encodedData; - KCodecs::base64Encode( data, encodedData ); + TQByteArray tqencodedData; + KCodecs::base64Encode( data, tqencodedData ); data.resetRawData( (char*)value.data(), value.size()); - elmt.setAttribute("value", encodedData); + elmt.setAttribute("value", tqencodedData); } break; case EXIF_TYPE_SSHORT: for(uint i = 0; i < components(); i++) - elmt.setAttribute(QString("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(QString("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(QString("numerator%1").arg(i), r.numerator ); - elmt.setAttribute(QString("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(QString("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(QString("value%1").arg(i), asDouble( i ) ); + elmt.setAttribute(TQString("value%1").tqarg(i), asDouble( i ) ); break; case EXIF_TYPE_UNKNOW: break; @@ -435,7 +435,7 @@ void ExifValue::setValue(const unsigned char *data, unsigned int size, ExifValue ExifNumber n; for(uint i = 0; i < components(); i++) { - n.m_sbyte = ((Q_INT8*)data)[i]; + n.m_sbyte = ((TQ_INT8*)data)[i]; setAsExifNumber( i, n); } } @@ -449,7 +449,7 @@ void ExifValue::setValue(const unsigned char *data, unsigned int size, ExifValue ExifNumber n; for(uint i = 0; i < components(); i++) { - get16Bit( data + 2 * i, order, (Q_UINT16*)&n.m_sshort); + get16Bit( data + 2 * i, order, (TQ_UINT16*)&n.m_sshort); setAsExifNumber( i, n); } } @@ -460,7 +460,7 @@ void ExifValue::setValue(const unsigned char *data, unsigned int size, ExifValue ExifNumber n; for(uint i = 0; i < components(); i++) { - get32Bit( data + 4 * i, order, (Q_UINT32*)&n.m_slong); + get32Bit( data + 4 * i, order, (TQ_UINT32*)&n.m_slong); setAsExifNumber( i, n); } } @@ -471,8 +471,8 @@ void ExifValue::setValue(const unsigned char *data, unsigned int size, ExifValue ExifNumber n; for(uint i = 0; i < components(); i++) { - get32Bit( data + 8 * i, order, (Q_UINT32*)&n.m_srational.numerator); - get32Bit( data + 8 * i + 4, order, (Q_UINT32*)&n.m_srational.denominator); + get32Bit( data + 8 * i, order, (TQ_UINT32*)&n.m_srational.numerator); + get32Bit( data + 8 * i + 4, order, (TQ_UINT32*)&n.m_srational.denominator); setAsExifNumber( i, n); } } @@ -483,7 +483,7 @@ void ExifValue::setValue(const unsigned char *data, unsigned int size, ExifValue ExifNumber n; for(uint i = 0; i < components(); i++) { - get32Bit( data + 4 * i, order, (Q_UINT32*)&n.m_float); + get32Bit( data + 4 * i, order, (TQ_UINT32*)&n.m_float); setAsExifNumber( i, n); } } @@ -494,7 +494,7 @@ void ExifValue::setValue(const unsigned char *data, unsigned int size, ExifValue ExifNumber n; for(uint i = 0; i < components(); i++) { - get64Bit( data + 8 * i, order, (Q_UINT64*)&n.m_double); + get64Bit( data + 8 * i, order, (TQ_UINT64*)&n.m_double); setAsExifNumber( i, n); } } @@ -518,7 +518,7 @@ void ExifValue::convertToData(unsigned char ** data, unsigned int* size, ExifVal return; case EXIF_TYPE_ASCII: { - QString str = asAscii(); + TQString str = asAscii(); *size = str.length(); *data = new uchar[ *size ]; uchar* ptr = *data; @@ -561,7 +561,7 @@ void ExifValue::convertToData(unsigned char ** data, unsigned int* size, ExifVal *data = new uchar[*size]; for(uint i = 0; i < components(); i++) { - *(((Q_INT8*)*data) + i) = asExifNumber(i).m_sbyte; + *(((TQ_INT8*)*data) + i) = asExifNumber(i).m_sbyte; } return; case EXIF_TYPE_UNDEFINED: @@ -577,7 +577,7 @@ void ExifValue::convertToData(unsigned char ** data, unsigned int* size, ExifVal *data = new uchar[*size]; for(uint i = 0; i < components(); i++) { - set16Bit( (*data) + 2 * i, order, (Q_UINT16*)&asExifNumber(i).m_sshort); + set16Bit( (*data) + 2 * i, order, (TQ_UINT16*)&asExifNumber(i).m_sshort); } return; case EXIF_TYPE_SLONG: @@ -585,7 +585,7 @@ void ExifValue::convertToData(unsigned char ** data, unsigned int* size, ExifVal *data = new uchar[*size]; for(uint i = 0; i < components(); i++) { - set32Bit( (*data) + 4 * i, order, (Q_UINT32*)&asExifNumber(i).m_slong); + set32Bit( (*data) + 4 * i, order, (TQ_UINT32*)&asExifNumber(i).m_slong); } return; case EXIF_TYPE_SRATIONAL: @@ -594,8 +594,8 @@ void ExifValue::convertToData(unsigned char ** data, unsigned int* size, ExifVal for(uint i = 0; i < components(); i++) { ExifNumber n = asExifNumber(i); - set32Bit( (*data) + 4 * i, order, (Q_UINT32*)&asExifNumber(i).m_srational.numerator); - set32Bit( (*data) + 4 * i + 4, order, (Q_UINT32*)&asExifNumber(i).m_srational.denominator); + set32Bit( (*data) + 4 * i, order, (TQ_UINT32*)&asExifNumber(i).m_srational.numerator); + set32Bit( (*data) + 4 * i + 4, order, (TQ_UINT32*)&asExifNumber(i).m_srational.denominator); } return; case EXIF_TYPE_FLOAT: @@ -603,7 +603,7 @@ void ExifValue::convertToData(unsigned char ** data, unsigned int* size, ExifVal *data = new uchar[*size]; for(uint i = 0; i < components(); i++) { - set32Bit( (*data) + 4 * i, order, (Q_UINT32*)&asExifNumber(i).m_float); + set32Bit( (*data) + 4 * i, order, (TQ_UINT32*)&asExifNumber(i).m_float); } return; case EXIF_TYPE_DOUBLE: @@ -611,7 +611,7 @@ void ExifValue::convertToData(unsigned char ** data, unsigned int* size, ExifVal *data = new uchar[*size]; for(uint i = 0; i < components(); i++) { - set64Bit( (*data) + 4 * i, order, (Q_UINT64*)&asExifNumber(i).m_double); + set64Bit( (*data) + 4 * i, order, (TQ_UINT64*)&asExifNumber(i).m_double); } return; case EXIF_TYPE_UNKNOW: @@ -619,7 +619,7 @@ void ExifValue::convertToData(unsigned char ** data, unsigned int* size, ExifVal } } -QString ExifValue::toString() +TQString ExifValue::toString() { switch(type()) { @@ -627,17 +627,17 @@ QString ExifValue::toString() return asAscii(); case EXIF_TYPE_UNDEFINED: { - QString undefined = "undefined"; + TQString undefined = "undefined"; UByteArray array = asUndefined(); for(uint i = 0; i < components(); i++) { - undefined += "\\" + QString().setNum( array[i] ); + undefined += "\\" + TQString().setNum( array[i] ); } return undefined; } default: { - QString str = ""; + TQString str = ""; for(uint i = 0; i < components(); i++) { str += toString(i); @@ -647,30 +647,30 @@ QString ExifValue::toString() } } -QString ExifValue::toString(uint i) +TQString ExifValue::toString(uint i) { switch(type()) { case EXIF_TYPE_BYTE: - return QString("%1 ").arg( asExifNumber( i ).m_byte ); + return TQString("%1 ").tqarg( asExifNumber( i ).m_byte ); case EXIF_TYPE_SHORT: - return QString("%1 ").arg( asExifNumber( i ).m_short ); + return TQString("%1 ").tqarg( asExifNumber( i ).m_short ); case EXIF_TYPE_LONG: - return QString("%1 ").arg( asExifNumber( i ).m_long ); + return TQString("%1 ").tqarg( asExifNumber( i ).m_long ); case EXIF_TYPE_RATIONAL: - return QString("%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 QString("%1 ").arg( asExifNumber( i ).m_sbyte ); + return TQString("%1 ").tqarg( asExifNumber( i ).m_sbyte ); case EXIF_TYPE_SSHORT: - return QString("%1 ").arg( asExifNumber( i ).m_sshort ); + return TQString("%1 ").tqarg( asExifNumber( i ).m_sshort ); case EXIF_TYPE_SLONG: - return QString("%1 ").arg( asExifNumber( i ).m_slong ); + return TQString("%1 ").tqarg( asExifNumber( i ).m_slong ); case EXIF_TYPE_SRATIONAL: - return QString("%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 QString("%1 ").arg( asExifNumber( i ).m_float ); + return TQString("%1 ").tqarg( asExifNumber( i ).m_float ); case EXIF_TYPE_DOUBLE: - return QString("%1 ").arg( asExifNumber( i ).m_double ); + return TQString("%1 ").tqarg( asExifNumber( i ).m_double ); default: return "unknow "; } |