Fix tdelibs FTBFS

pull/16/head
Timothy Pearson 13 years ago
parent 7120e84c0b
commit 3fbca5d9a4

@ -216,7 +216,7 @@ class TDECORE_EXPORT kdbgstream {
kdbgstream &operator<<(const TQString& string) {
if (!print) return *this;
output += string;
if (output.tqat(output.length() -1 ) == (QChar)'\n')
if (output.tqat(output.length() -1 ) == (TQChar)'\n')
flush();
return *this;
}
@ -228,7 +228,7 @@ class TDECORE_EXPORT kdbgstream {
kdbgstream &operator<<(const char *string) {
if (!print) return *this;
output += TQString::fromUtf8(string);
if (output.tqat(output.length() - 1) == (QChar)'\n')
if (output.tqat(output.length() - 1) == (TQChar)'\n')
flush();
return *this;
}

@ -672,7 +672,7 @@ public:
for(int y = 0; y < m_height; y++)
{
QRgb *sl = reinterpret_cast<QRgb *>(m_image->scanLine(y));
TQRgb *sl = reinterpret_cast<TQRgb *>(m_image->scanLine(y));
for(int x = 0; x < m_width; x++)
sl[x] = tqRgba(line[x * 4], line[x * 4 + 1], line[x * 4 + 2], line[x * 4 + 3]);

@ -98,7 +98,7 @@ static bool kdither_32_to_8( const TQImage *src, TQImage *dst )
// Bi-directional error diffusion
if ( y&1 ) {
for (x=0; x<sw; x++) {
int pix = QMAX(QMIN(2, (l1[x] * 2 + 128)/ 255), 0);
int pix = TQMAX(TQMIN(2, (l1[x] * 2 + 128)/ 255), 0);
int err = l1[x] - pix * 255 / 2;
pv[chan][x] = pix;
@ -113,7 +113,7 @@ static bool kdither_32_to_8( const TQImage *src, TQImage *dst )
}
} else {
for (x=sw; x-->0; ) {
int pix = QMAX(QMIN(2, (l1[x] * 2 + 128)/ 255), 0);
int pix = TQMAX(TQMIN(2, (l1[x] * 2 + 128)/ 255), 0);
int err = l1[x] - pix * 255 / 2;
pv[chan][x] = pix;
@ -357,7 +357,7 @@ bool KPixmap::checkColorTable( const TQImage &image )
}
QRgb* ctable = image.tqcolorTable();
TQRgb* ctable = image.tqcolorTable();
int ncols = image.numColors();
int j;

Loading…
Cancel
Save