diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-19 19:03:33 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-19 19:03:33 +0000 |
commit | e69e8b1d09fb579316595b4e6a850e717358a8b1 (patch) | |
tree | a24fc20865f65772f530d16177520190594ffdd2 /kviewshell/documentPageCache.cpp | |
parent | eecec9afb81fdebb0f22e9da22635874c403f854 (diff) | |
download | tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip |
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kviewshell/documentPageCache.cpp')
-rw-r--r-- | kviewshell/documentPageCache.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kviewshell/documentPageCache.cpp b/kviewshell/documentPageCache.cpp index b2322321..9fd55d59 100644 --- a/kviewshell/documentPageCache.cpp +++ b/kviewshell/documentPageCache.cpp @@ -119,7 +119,7 @@ bool DocumentPageCache::isPageCached(const PageNumber& pageNumber, const TQSize& // Check if the page that we are looking for is in the cache. // We are not accessing the page, so we don't want it to be moved into the front. - RenderedDocumentPagePixmap* page = LRUCache.find(key, false); + RenderedDocumentPagePixmap* page = LRUCache.tqfind(key, false); if (page) return true; @@ -191,7 +191,7 @@ RenderedDocumentPagePixmap* DocumentPageCache::getPage(const PageNumber& pageNr) // First check if the page that we are looking for is in the cache RenderedDocumentPagePixmap* page; - page = LRUCache.find(createKey(pageNr)); + page = LRUCache.tqfind(createKey(pageNr)); if (page) return page; @@ -220,7 +220,7 @@ RenderedDocumentPagePixmap* DocumentPageCache::getPage(const PageNumber& pageNr) // We always set the cache capacity to be at least n times the cost of the page we want to insert. // Where n is the number of pages that can be visible at the same time at very high zoomlevels. - // n depends on the layout mode. + // n depends on the tqlayout mode. // If these pages are not all in the cache, scrolling the view becomes very slow, because for each // paint event the pages need to be rerendered. // We set n for each viewmode differently so that the user is able to reduce memory consuption by @@ -237,7 +237,7 @@ RenderedDocumentPagePixmap* DocumentPageCache::getPage(const PageNumber& pageNr) default: n = 4; } - LRUCache.setMaxCost(QMAX(page->memory() * n, maxMemory)); + LRUCache.setMaxCost(TQMAX(page->memory() * n, maxMemory)); if (!LRUCache.insert(createKey(pageNr), page, page->memory())) { |