diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
commit | eba47f8f0637f451e21348187591e1f1fd58ac74 (patch) | |
tree | 448f10b95c656604acc331a3236c1e59bde5c1ad /kviewshell/documentRenderer.cpp | |
parent | c7e8736c69373f48b0401319757c742e8607431a (diff) | |
download | tdegraphics-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/documentRenderer.cpp')
-rw-r--r-- | kviewshell/documentRenderer.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kviewshell/documentRenderer.cpp b/kviewshell/documentRenderer.cpp index f9837fa2..34bf59ac 100644 --- a/kviewshell/documentRenderer.cpp +++ b/kviewshell/documentRenderer.cpp @@ -16,9 +16,9 @@ #include "renderedDocumentPage.h" -DocumentRenderer::DocumentRenderer(QWidget* par) +DocumentRenderer::DocumentRenderer(TQWidget* par) : mutex(true), parentWidget(par), accessibilityBackground(false), - accessibilityBackgroundColor(QColor(255,255,255)) + accessibilityBackgroundColor(TQColor(255,255,255)) { numPages = 0; _isModified = false; @@ -28,7 +28,7 @@ DocumentRenderer::DocumentRenderer(QWidget* par) DocumentRenderer::~DocumentRenderer() { // Wait for all access to this DocumentRenderer to finish - QMutexLocker lock(&mutex); + TQMutexLocker lock(&mutex); clear(); } @@ -37,7 +37,7 @@ DocumentRenderer::~DocumentRenderer() void DocumentRenderer::clear() { // Wait for all access to this DocumentRenderer to finish - QMutexLocker lock(&mutex); + TQMutexLocker lock(&mutex); numPages = 0; pageSizes.clear(); @@ -46,10 +46,10 @@ void DocumentRenderer::clear() _isModified = false; } -void DocumentRenderer::setAccessibleBackground(bool accessibleMode, const QColor& background) +void DocumentRenderer::setAccessibleBackground(bool accessibleMode, const TQColor& background) { // Wait for all access to this DocumentRenderer to finish - QMutexLocker lock(&mutex); + TQMutexLocker lock(&mutex); accessibilityBackground = accessibleMode; accessibilityBackgroundColor = background; @@ -58,7 +58,7 @@ void DocumentRenderer::setAccessibleBackground(bool accessibleMode, const QColor SimplePageSize DocumentRenderer::sizeOfPage(const PageNumber& page) { // Wait for all access to this DocumentRenderer to finish - QMutexLocker locker(&mutex); + TQMutexLocker locker(&mutex); if (!page.isValid()) return SimplePageSize(); @@ -74,7 +74,7 @@ SimplePageSize DocumentRenderer::sizeOfPage(const PageNumber& page) void DocumentRenderer::drawThumbnail(double resolution, RenderedDocumentPage* page) { // Wait for all access to this DocumentRenderer to finish - QMutexLocker locker(&mutex); + TQMutexLocker locker(&mutex); drawPage(resolution, page); } @@ -85,16 +85,16 @@ void DocumentRenderer::getText(RenderedDocumentPage* page) drawPage(100.0, page); } -bool DocumentRenderer::isValidFile(const QString&) const +bool DocumentRenderer::isValidFile(const TQString&) const { return true; } -Anchor DocumentRenderer::parseReference(const QString &reference) +Anchor DocumentRenderer::parseReference(const TQString &reference) { // Wait for all access to this documentRenderer to finish - QMutexLocker locker(&mutex); + TQMutexLocker locker(&mutex); if (isEmpty()) return Anchor(); @@ -117,12 +117,12 @@ Anchor DocumentRenderer::parseReference(const QString &reference) return Anchor(); } -Anchor DocumentRenderer::findAnchor(const QString &locallink) +Anchor DocumentRenderer::findAnchor(const TQString &locallink) { // Wait for all access to this DocumentRenderer to finish - QMutexLocker locker(&mutex); + TQMutexLocker locker(&mutex); - QMap<QString,Anchor>::Iterator it = anchorList.find(locallink); + TQMap<TQString,Anchor>::Iterator it = anchorList.find(locallink); if (it != anchorList.end()) return *it; else |