summaryrefslogtreecommitdiffstats
path: root/kviewshell/documentPageCache.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /kviewshell/documentPageCache.h
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz
tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kviewshell/documentPageCache.h')
-rw-r--r--kviewshell/documentPageCache.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/kviewshell/documentPageCache.h b/kviewshell/documentPageCache.h
index c885123a..8477d152 100644
--- a/kviewshell/documentPageCache.h
+++ b/kviewshell/documentPageCache.h
@@ -15,12 +15,12 @@
#include "pageSize.h"
#include "selection.h"
-#include <qcache.h>
-#include <qguardedptr.h>
-#include <qobject.h>
+#include <tqcache.h>
+#include <tqguardedptr.h>
+#include <tqobject.h>
class DocumentRenderer;
-class QPixmap;
+class TQPixmap;
class RenderedDocumentPage;
@@ -56,7 +56,7 @@ class DocumentPageCache: public QObject
set with setResolution(). If the document does not specify a
size (which happens, e.g., for some DVI-files), the
userPreferredSize is used. */
- QSize sizeOfPageInPixel(const PageNumber& page) const;
+ TQSize sizeOfPageInPixel(const PageNumber& page) const;
/** Returns a pointer to a documentPage structure, or 0, if the
documentPage could not be generated for some reason (e.g.,
@@ -64,16 +64,16 @@ class DocumentPageCache: public QObject
RenderedDocumentPagePixmap* getPage(const PageNumber& pageNr);
/** Checks if the given page is already in the cache. */
- bool isPageCached(const PageNumber& pageNumber, const QSize& size);
+ bool isPageCached(const PageNumber& pageNumber, const TQSize& size);
/** Checks if the given page is already in the cache. Here we don't care about the size
of the page. */
bool isPageCached(const PageNumber& pageNumber);
/** Returns a "width" pixels width thumbnail of the given page. This
- method returns an empty QPixmap if one of the arguments is
+ method returns an empty TQPixmap if one of the arguments is
invalid, or if the page cannot be rendered for any reason. */
- QPixmap createThumbnail(const PageNumber& pageNr, int width);
+ TQPixmap createThumbnail(const PageNumber& pageNr, int width);
signals:
/** This signal is emitted when setUserPreferredSize() or
@@ -102,13 +102,13 @@ class DocumentPageCache: public QObject
virtual RenderedDocumentPagePixmap* createDocumentPagePixmap() const;
/** Creates the hashing key for the cache. */
- QString createKey(const PageNumber& pageNumber, const QSize& size);
+ TQString createKey(const PageNumber& pageNumber, const TQSize& size);
/** Creates the hashing function. The size of the page is calculated
based on the current resolution. */
- QString createKey(const PageNumber& pageNumber);
+ TQString createKey(const PageNumber& pageNumber);
- QGuardedPtr<DocumentRenderer> renderer;
+ TQGuardedPtr<DocumentRenderer> renderer;
private:
/** The maximum of memory used by the cache. (32MB)
@@ -132,7 +132,7 @@ class DocumentPageCache: public QObject
/** This list holds the cache. */
- QCache<RenderedDocumentPagePixmap> LRUCache;
+ TQCache<RenderedDocumentPagePixmap> LRUCache;
/** This is a dummy documentPage structure which is used internally
by the 'createThumbnail' method. */