summaryrefslogtreecommitdiffstats
path: root/kolourpaint/cursors
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-09 02:23:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-09 02:23:29 +0000
commitbce8199ddac4feecdee9c094fb8f75863cfa9652 (patch)
treeb0521e39686b4b24960a9d83e72a9c09937a810c /kolourpaint/cursors
parent03d51915bf86a00c5953817c89976b62785bb5a1 (diff)
downloadtdegraphics-bce8199ddac4feecdee9c094fb8f75863cfa9652.tar.gz
tdegraphics-bce8199ddac4feecdee9c094fb8f75863cfa9652.zip
Remove the tq in front of these incorrectly TQt4-converted methods/data members:
tqrepaint[...] tqinvalidate[...] tqparent[...] tqmask[...] tqlayout[...] tqalignment[...] git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1240522 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kolourpaint/cursors')
-rw-r--r--kolourpaint/cursors/kpcursorlightcross.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kolourpaint/cursors/kpcursorlightcross.cpp b/kolourpaint/cursors/kpcursorlightcross.cpp
index dc52f9bd..34051dbf 100644
--- a/kolourpaint/cursors/kpcursorlightcross.cpp
+++ b/kolourpaint/cursors/kpcursorlightcross.cpp
@@ -42,7 +42,7 @@ enum PixelValue
};
static void setPixel (unsigned char *colorBitmap,
- unsigned char *tqmaskBitmap,
+ unsigned char *maskBitmap,
int width,
int y, int x, enum PixelValue pv)
{
@@ -52,32 +52,32 @@ static void setPixel (unsigned char *colorBitmap,
const int MaskOpaque = 1;
const int MaskTransparent = 0;
- int colorValue, tqmaskValue;
+ int colorValue, maskValue;
switch (pv)
{
case White:
colorValue = ColorWhite;
- tqmaskValue = MaskOpaque;
+ maskValue = MaskOpaque;
break;
case Black:
colorValue = ColorBlack;
- tqmaskValue = MaskOpaque;
+ maskValue = MaskOpaque;
break;
case Transparent:
default:
colorValue = ColorWhite;
- tqmaskValue = MaskTransparent;
+ maskValue = MaskTransparent;
break;
}
if (colorValue)
colorBitmap [y * (width / 8) + (x / 8)] |= (1 << (x % 8));
- if (tqmaskValue)
- tqmaskBitmap [y * (width / 8) + (x / 8)] |= (1 << (x % 8));
+ if (maskValue)
+ maskBitmap [y * (width / 8) + (x / 8)] |= (1 << (x % 8));
}
@@ -90,10 +90,10 @@ const TQCursor *kpMakeCursorLightCross ()
const int side = 24;
const int byteSize = (side * side) / 8;
unsigned char *colorBitmap = new unsigned char [byteSize];
- unsigned char *tqmaskBitmap = new unsigned char [byteSize];
+ unsigned char *maskBitmap = new unsigned char [byteSize];
memset (colorBitmap, 0, byteSize);
- memset (tqmaskBitmap, 0, byteSize);
+ memset (maskBitmap, 0, byteSize);
const int oddSide = side - 1;
const int strokeLen = oddSide * 3 / 8;
@@ -104,7 +104,7 @@ const TQCursor *kpMakeCursorLightCross ()
#define X_(val) (val)
#define Y_(val) (val)
- #define DRAW(y,x) setPixel (colorBitmap, tqmaskBitmap, side, (y), (x), pv)
+ #define DRAW(y,x) setPixel (colorBitmap, maskBitmap, side, (y), (x), pv)
// horizontal
DRAW (Y_(side / 2), X_(1 + i));
DRAW (Y_(side / 2), X_(side - 1 - i));
@@ -118,9 +118,9 @@ const TQCursor *kpMakeCursorLightCross ()
}
TQCursor *cursor = new TQCursor (TQBitmap (side, side, colorBitmap, true/*little endian bit order*/),
- TQBitmap (side, side, tqmaskBitmap, true/*little endian bit order*/));
+ TQBitmap (side, side, maskBitmap, true/*little endian bit order*/));
- delete [] tqmaskBitmap;
+ delete [] maskBitmap;
delete [] colorBitmap;
return cursor;