diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 06:40:27 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 06:40:27 +0000 |
commit | 2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 (patch) | |
tree | 18a8f0f4ac5a86dacfa74c3537551ec39bc85e75 /src/translators/freedb_util.cpp | |
parent | 1d90725a4001fab9d3922b2cbcceeee5e2d1686f (diff) | |
download | tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.tar.gz tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.zip |
TQt4 port tellico
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1239054 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/translators/freedb_util.cpp')
-rw-r--r-- | src/translators/freedb_util.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/translators/freedb_util.cpp b/src/translators/freedb_util.cpp index 6640ef6..07292af 100644 --- a/src/translators/freedb_util.cpp +++ b/src/translators/freedb_util.cpp @@ -129,8 +129,8 @@ namespace { }; } -QValueList<uint> FreeDBImporter::offsetList(const QCString& drive_, QValueList<uint>& trackLengths_) { - QValueList<uint> list; +TQValueList<uint> FreeDBImporter::offsetList(const TQCString& drive_, TQValueList<uint>& trackLengths_) { + TQValueList<uint> list; int drive = ::open(drive_.data(), O_RDONLY | O_NONBLOCK); CloseDrive closer(drive); @@ -235,7 +235,7 @@ ushort from2Byte(uchar* d) { #define SIZE 61 // mostly taken from kover and k3b // licensed under GPL -FreeDBImporter::CDText FreeDBImporter::getCDText(const QCString& drive_) { +FreeDBImporter::CDText FreeDBImporter::getCDText(const TQCString& drive_) { CDText cdtext; #ifdef USE_CDTEXT // only works for linux ATM @@ -337,23 +337,23 @@ FreeDBImporter::CDText FreeDBImporter::getCDText(const QCString& drive_) { data[pos_data] = c; if(track == 0) { if(code == (char)0xFFFFFF80) { - cdtext.title = QString::fromUtf8(data); + cdtext.title = TQString::fromUtf8(data); } else if(code == (char)0xFFFFFF81) { - cdtext.artist = QString::fromUtf8(data); + cdtext.artist = TQString::fromUtf8(data); } else if (code == (char)0xFFFFFF85) { - cdtext.message = QString::fromUtf8(data); + cdtext.message = TQString::fromUtf8(data); } } else { if(code == (char)0xFFFFFF80) { if(cdtext.trackTitles.size() < track) { cdtext.trackTitles.resize(track); } - cdtext.trackTitles[track-1] = QString::fromUtf8(data); + cdtext.trackTitles[track-1] = TQString::fromUtf8(data); } else if(code == (char)0xFFFFFF81) { if(cdtext.trackArtists.size() < track) { cdtext.trackArtists.resize(track); } - cdtext.trackArtists[track-1] = QString::fromUtf8(data); + cdtext.trackArtists[track-1] = TQString::fromUtf8(data); } } rc = true; @@ -365,7 +365,7 @@ FreeDBImporter::CDText FreeDBImporter::getCDText(const QCString& drive_) { } } if(cdtext.trackTitles.size() != cdtext.trackArtists.size()) { - int size = QMAX(cdtext.trackTitles.size(), cdtext.trackArtists.size()); + int size = TQMAX(cdtext.trackTitles.size(), cdtext.trackArtists.size()); cdtext.trackTitles.resize(size); cdtext.trackArtists.resize(size); } |