summaryrefslogtreecommitdiffstats
path: root/ksquirrel/sq_pixmapcache.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-03 01:36:58 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-03 01:36:58 +0000
commitd9d0ac84a2b1609ff81b399b81842a15704cbefd (patch)
tree58c783db373c4633201e5a9716901599c1afad92 /ksquirrel/sq_pixmapcache.cpp
parent63f270d62c4541f1379f0f82f5255a34e5037e00 (diff)
downloadksquirrel-d9d0ac84a2b1609ff81b399b81842a15704cbefd.tar.gz
ksquirrel-d9d0ac84a2b1609ff81b399b81842a15704cbefd.zip
TQt4 port ksquirrel
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ksquirrel@1239132 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksquirrel/sq_pixmapcache.cpp')
-rw-r--r--ksquirrel/sq_pixmapcache.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/ksquirrel/sq_pixmapcache.cpp b/ksquirrel/sq_pixmapcache.cpp
index 7fe2217..4be5869 100644
--- a/ksquirrel/sq_pixmapcache.cpp
+++ b/ksquirrel/sq_pixmapcache.cpp
@@ -25,8 +25,8 @@
SQ_PixmapCache * SQ_PixmapCache::m_instance = 0;
-SQ_PixmapCache::SQ_PixmapCache(QObject *parent, int limit)
- : QObject(parent), QMap<KURL, SQ_Thumbnail>()
+SQ_PixmapCache::SQ_PixmapCache(TQObject *tqparent, int limit)
+ : TQObject(tqparent), TQMap<KURL, SQ_Thumbnail>()
{
m_instance = this;
cache_limit = limit << 10;
@@ -82,7 +82,7 @@ void SQ_PixmapCache::insert(const KURL &key, const SQ_Thumbnail &thumb)
last_full += entrySize(thumb);
// add new entry
- QMap<KURL, SQ_Thumbnail>::insert(key, thumb);
+ TQMap<KURL, SQ_Thumbnail>::insert(key, thumb);
}
/*
@@ -90,7 +90,7 @@ void SQ_PixmapCache::insert(const KURL &key, const SQ_Thumbnail &thumb)
*/
void SQ_PixmapCache::removeEntry(const KURL &key)
{
- iterator it = find(key);
+ iterator it = tqfind(key);
// no item to remove ?
if(it == end())
@@ -98,7 +98,7 @@ void SQ_PixmapCache::removeEntry(const KURL &key)
last_full -= entrySize(it.data());
- QMap<KURL, SQ_Thumbnail>::remove(key);
+ TQMap<KURL, SQ_Thumbnail>::remove(key);
}
/*
@@ -116,9 +116,9 @@ void SQ_PixmapCache::removeEntryFull(const KURL &key)
/*
* Check if pixmap, represented by 'key', is already in cache.
*/
-bool SQ_PixmapCache::contains2(const KURL &key, SQ_Thumbnail &th)
+bool SQ_PixmapCache::tqcontains2(const KURL &key, SQ_Thumbnail &th)
{
- iterator it = find(key);
+ iterator it = tqfind(key);
// item found
if(it != end())
@@ -158,7 +158,7 @@ void SQ_PixmapCache::clear()
{
valid_full = false;
- QMap<KURL, SQ_Thumbnail>::clear();
+ TQMap<KURL, SQ_Thumbnail>::clear();
}
int SQ_PixmapCache::entrySize(const SQ_Thumbnail &th) const