summaryrefslogtreecommitdiffstats
path: root/juk/covermanager.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:59:25 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:59:25 -0600
commitf59dfa08651a47f21d004e8e4cb5020b8035287e (patch)
tree0582273566661474af14fe8f1737cfe1e6527d46 /juk/covermanager.cpp
parent83fbc82a101309e171089f0d5ed080f82a367345 (diff)
downloadtdemultimedia-f59dfa08651a47f21d004e8e4cb5020b8035287e.tar.gz
tdemultimedia-f59dfa08651a47f21d004e8e4cb5020b8035287e.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 83fbc82a101309e171089f0d5ed080f82a367345.
Diffstat (limited to 'juk/covermanager.cpp')
-rw-r--r--juk/covermanager.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/juk/covermanager.cpp b/juk/covermanager.cpp
index 59c488d2..7cd3d014 100644
--- a/juk/covermanager.cpp
+++ b/juk/covermanager.cpp
@@ -269,7 +269,7 @@ const char *CoverDrag::format(int i) const
return 0;
}
-TQByteArray CoverDrag::encodedData(const char *mimetype) const
+TQByteArray CoverDrag::tqencodedData(const char *mimetype) const
{
if(qstrcmp(CoverDrag::mimetype, mimetype) == 0) {
TQByteArray data;
@@ -303,7 +303,7 @@ bool CoverDrag::decode(const TQMimeSource *e, coverKey &id)
if(!canDecode(e))
return false;
- TQByteArray data = e->encodedData(mimetype);
+ TQByteArray data = e->tqencodedData(mimetype);
TQDataStream ds(data, IO_ReadOnly);
TQ_UINT32 i;
@@ -395,7 +395,7 @@ coverKey CoverManager::addCover(const TQPixmap &large, const TQString &artist, c
// Save it to file first!
- TQString ext = TQString("/coverdb/coverID-%1.png").arg(id);
+ TQString ext = TQString("/coverdb/coverID-%1.png").tqarg(id);
coverData->path = KGlobal::dirs()->saveLocation("appdata") + ext;
kdDebug() << "Saving pixmap to " << coverData->path << endl;
@@ -413,8 +413,8 @@ coverKey CoverManager::addCover(const TQPixmap &large, const TQString &artist, c
data()->covers[id] = coverData;
// Make sure the new cover isn't inadvertently cached.
- data()->pixmapCache.remove(TQString("f%1").arg(coverData->path));
- data()->pixmapCache.remove(TQString("t%1").arg(coverData->path));
+ data()->pixmapCache.remove(TQString("f%1").tqarg(coverData->path));
+ data()->pixmapCache.remove(TQString("t%1").tqarg(coverData->path));
return id;
}
@@ -436,8 +436,8 @@ bool CoverManager::removeCover(coverKey id)
// Remove cover from cache.
CoverDataPtr coverData = coverInfo(id);
- data()->pixmapCache.remove(TQString("f%1").arg(coverData->path));
- data()->pixmapCache.remove(TQString("t%1").arg(coverData->path));
+ data()->pixmapCache.remove(TQString("f%1").tqarg(coverData->path));
+ data()->pixmapCache.remove(TQString("t%1").tqarg(coverData->path));
// Remove references to files that had that track ID.
TQDictIterator<coverKey> it(data()->tracks);
@@ -462,8 +462,8 @@ bool CoverManager::replaceCover(coverKey id, const TQPixmap &large)
CoverDataPtr coverData = coverInfo(id);
// Empty old pixmaps from cache.
- data()->pixmapCache.remove(TQString("%1%2").arg("t", coverData->path));
- data()->pixmapCache.remove(TQString("%1%2").arg("f", coverData->path));
+ data()->pixmapCache.remove(TQString("%1%2").tqarg("t", coverData->path));
+ data()->pixmapCache.remove(TQString("%1%2").tqarg("f", coverData->path));
large.save(coverData->path, "PNG");
return true;