summaryrefslogtreecommitdiffstats
path: root/src/kernel/qpsprinter.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-27 02:13:42 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-27 02:13:42 -0600
commit520c05ef06ce203ad32470730f68402bc7719157 (patch)
tree8d0bb18bbbecb4c837e232848905e5819db84b81 /src/kernel/qpsprinter.cpp
parentb82553bf90cb5311cfe8e673b07cf6cffc95fd3c (diff)
downloadtqt3-520c05ef06ce203ad32470730f68402bc7719157.tar.gz
tqt3-520c05ef06ce203ad32470730f68402bc7719157.zip
Automated update from qt3
Diffstat (limited to 'src/kernel/qpsprinter.cpp')
-rw-r--r--src/kernel/qpsprinter.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/kernel/qpsprinter.cpp b/src/kernel/qpsprinter.cpp
index 1fc1190a7..7d660b471 100644
--- a/src/kernel/qpsprinter.cpp
+++ b/src/kernel/qpsprinter.cpp
@@ -5407,12 +5407,12 @@ static TQByteArray compress( const TQImage & image, bool gray ) {
for( int x=0; x < width; x++ ) {
TQRgb rgb = image.color( s[x] );
if ( gray ) {
- pixel[i] = (unsigned char) qGray( rgb );
+ pixel[i] = (unsigned char) tqGray( rgb );
i++;
} else {
- pixel[i] = (unsigned char) qRed( rgb );
- pixel[i+1] = (unsigned char) qGreen( rgb );
- pixel[i+2] = (unsigned char) qBlue( rgb );
+ pixel[i] = (unsigned char) tqRed( rgb );
+ pixel[i+1] = (unsigned char) tqGreen( rgb );
+ pixel[i+2] = (unsigned char) tqBlue( rgb );
i += 3;
}
}
@@ -5423,15 +5423,15 @@ static TQByteArray compress( const TQImage & image, bool gray ) {
TQRgb * s = (TQRgb*)(image.scanLine( y ));
for( int x=0; x < width; x++ ) {
TQRgb rgb = (*s++);
- if ( alpha && qAlpha( rgb ) < 0x40 ) // 25% alpha, convert to white -
- rgb = qRgb( 0xff, 0xff, 0xff );
+ if ( alpha && tqAlpha( rgb ) < 0x40 ) // 25% alpha, convert to white -
+ rgb = tqRgb( 0xff, 0xff, 0xff );
if ( gray ) {
- pixel[i] = (unsigned char) qGray( rgb );
+ pixel[i] = (unsigned char) tqGray( rgb );
i++;
} else {
- pixel[i] = (unsigned char) qRed( rgb );
- pixel[i+1] = (unsigned char) qGreen( rgb );
- pixel[i+2] = (unsigned char) qBlue( rgb );
+ pixel[i] = (unsigned char) tqRed( rgb );
+ pixel[i+1] = (unsigned char) tqGreen( rgb );
+ pixel[i+2] = (unsigned char) tqBlue( rgb );
i += 3;
}
}
@@ -5767,7 +5767,7 @@ static const char * color( const TQColor &c, TQPrinter * printer )
sprintf( returnbuffer, "%d d2 ", c.red() );
else if ( printer->colorMode() == TQPrinter::GrayScale )
sprintf( returnbuffer, "%d d2 ",
- qGray( c.red(), c.green(),c.blue() ) );
+ tqGray( c.red(), c.green(),c.blue() ) );
else
sprintf( returnbuffer, "%d %d %d ",
c.red(), c.green(), c.blue() );