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 /kdvi/dviRenderer_draw.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 'kdvi/dviRenderer_draw.cpp')
-rw-r--r-- | kdvi/dviRenderer_draw.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kdvi/dviRenderer_draw.cpp b/kdvi/dviRenderer_draw.cpp index d09caf6d..b65f240e 100644 --- a/kdvi/dviRenderer_draw.cpp +++ b/kdvi/dviRenderer_draw.cpp @@ -70,13 +70,13 @@ #include <klocale.h> #include <kmessagebox.h> #include <kprocess.h> -#include <qpainter.h> -#include <qbitmap.h> -#include <qimage.h> -#include <qpainter.h> -#include <qfileinfo.h> +#include <tqpainter.h> +#include <tqbitmap.h> +#include <tqimage.h> +#include <tqpainter.h> +#include <tqfileinfo.h> -extern QPainter *foreGroundPainter; +extern TQPainter *foreGroundPainter; /** Routine to print characters. */ @@ -97,7 +97,7 @@ void dviRenderer::set_char(unsigned int cmd, unsigned int ch) long dvi_h_sav = currinf.data.dvi_h; - QPixmap pix = g->shrunkenCharacter; + TQPixmap pix = g->shrunkenCharacter; int x = ((int) ((currinf.data.dvi_h) / (shrinkfactor * 65536))) - g->x2; int y = currinf.data.pxl_v - g->y2; @@ -117,7 +117,7 @@ void dviRenderer::set_char(unsigned int cmd, unsigned int ch) dhl.linkText = *HTML_href; currentlyDrawnPage->hyperLinkList.push_back(dhl); } else { - QRect dshunion = currentlyDrawnPage->hyperLinkList[currentlyDrawnPage->hyperLinkList.size()-1].box.unite(QRect(x, y, pix.width(), pix.height())) ; + TQRect dshunion = currentlyDrawnPage->hyperLinkList[currentlyDrawnPage->hyperLinkList.size()-1].box.unite(TQRect(x, y, pix.width(), pix.height())) ; currentlyDrawnPage->hyperLinkList[currentlyDrawnPage->hyperLinkList.size()-1].box = dshunion; } } @@ -141,7 +141,7 @@ void dviRenderer::set_char(unsigned int cmd, unsigned int ch) dhl.linkText = ""; currentDVIPage->sourceHyperLinkList.push_back(dhl); } else { - QRect dshunion = currentDVIPage->sourceHyperLinkList[currentDVIPage->sourceHyperLinkList.size()-1].box.unite(QRect(x, y, pix.width(), pix.height())) ; + TQRect dshunion = currentDVIPage->sourceHyperLinkList[currentDVIPage->sourceHyperLinkList.size()-1].box.unite(TQRect(x, y, pix.width(), pix.height())) ; currentDVIPage->sourceHyperLinkList[currentDVIPage->sourceHyperLinkList.size()-1].box = dshunion; } } @@ -188,7 +188,7 @@ void dviRenderer::set_char(unsigned int cmd, unsigned int ch) default: if ((ch >= 0x21) && (ch <= 0x7a)) - currentlyDrawnPage->textBoxList[currentlyDrawnPage->textBoxList.size()-1].text += QChar(ch); + currentlyDrawnPage->textBoxList[currentlyDrawnPage->textBoxList.size()-1].text += TQChar(ch); else currentlyDrawnPage->textBoxList[currentlyDrawnPage->textBoxList.size()-1].text += "?"; break; |