summaryrefslogtreecommitdiffstats
path: root/tools/qvfb
diff options
context:
space:
mode:
Diffstat (limited to 'tools/qvfb')
-rw-r--r--tools/qvfb/qanimationwriter.cpp4
-rw-r--r--tools/qvfb/qvfb.cpp2
-rw-r--r--tools/qvfb/qvfbview.cpp16
3 files changed, 11 insertions, 11 deletions
diff --git a/tools/qvfb/qanimationwriter.cpp b/tools/qvfb/qanimationwriter.cpp
index 76dc94644..8a3c32cca 100644
--- a/tools/qvfb/qanimationwriter.cpp
+++ b/tools/qvfb/qanimationwriter.cpp
@@ -371,7 +371,7 @@ void TQAnimationWriter::appendFrame(const TQImage& frm, const TQPoint& offset)
if ( i == alignx ) {
// All the same
for (i=0; i<alignx; i++) {
- ld[x+i] = qRgba(0,0,0,0);
+ ld[x+i] = tqRgba(0,0,0,0);
}
} else {
// Some different
@@ -385,7 +385,7 @@ void TQAnimationWriter::appendFrame(const TQImage& frm, const TQPoint& offset)
if ( li[x] != lp[x] )
ld[x] = 0xff000000 | li[x];
else
- ld[x] = qRgba(0,0,0,0);
+ ld[x] = tqRgba(0,0,0,0);
}
}
}
diff --git a/tools/qvfb/qvfb.cpp b/tools/qvfb/qvfb.cpp
index 5ba0ea876..91f4d7052 100644
--- a/tools/qvfb/qvfb.cpp
+++ b/tools/qvfb/qvfb.cpp
@@ -135,7 +135,7 @@ void TQVFb::createMenu(TQMenuData *menu)
file->insertItem( "&Save image...", this, SLOT(saveImage()), ALT+CTRL+Key_S );
file->insertItem( "&Animation...", this, SLOT(toggleAnimation()), ALT+CTRL+Key_A );
file->insertSeparator();
- file->insertItem( "&Quit", qApp, SLOT(quit()) );
+ file->insertItem( "&Quit", tqApp, SLOT(quit()) );
menu->insertItem( "&File", file );
diff --git a/tools/qvfb/qvfbview.cpp b/tools/qvfb/qvfbview.cpp
index 08566fd94..1532fe36c 100644
--- a/tools/qvfb/qvfbview.cpp
+++ b/tools/qvfb/qvfbview.cpp
@@ -214,7 +214,7 @@ void TQVFbView::setGamma(double gr, double gg, double gb)
if ( r > 255 ) r = 255;
if ( g > 255 ) g = 255;
if ( b > 255 ) b = 255;
- gammatable[i] = qRgb(r,g,b);
+ gammatable[i] = tqRgb(r,g,b);
//qDebug("%d: %d,%d,%d",i,r,g,b);
}
@@ -225,9 +225,9 @@ void TQVFbView::getGamma(int i, TQRgb& rgb)
{
if ( i > 255 ) i = 255;
if ( i < 0 ) i = 0;
- rgb = qRgb(qRed(gammatable[i*rmax/255]),
- qGreen(gammatable[i*rmax/255]),
- qBlue(gammatable[i*rmax/255]));
+ rgb = tqRgb(tqRed(gammatable[i*rmax/255]),
+ tqGreen(gammatable[i*rmax/255]),
+ tqBlue(gammatable[i*rmax/255]));
}
int TQVFbView::displayId() const
@@ -257,7 +257,7 @@ void TQVFbView::setZoom( double z )
setDirty(TQRect(0,0,hdr->width,hdr->height));
resizeContents( int(hdr->width*z), int(hdr->height*z) );
updateGeometry();
- qApp->sendPostedEvents();
+ tqApp->sendPostedEvents();
topLevelWidget()->adjustSize();
drawScreen();
}
@@ -398,10 +398,10 @@ TQImage TQVFbView::getBuffer( const TQRect &r, int &leading ) const
ushort s = *sptr++;
#ifdef QT_QWS_REVERSE_BYTE_ENDIANNESS
ushort s2 = *sptr++;
- *dptr++ = qRgb(qRed(gammatable[(s2>>rsh)&rmax]),qGreen(gammatable[(s2>>gsh)&gmax]),qBlue(gammatable[(s2>>bsh)&bmax]));
+ *dptr++ = tqRgb(tqRed(gammatable[(s2>>rsh)&rmax]),tqGreen(gammatable[(s2>>gsh)&gmax]),tqBlue(gammatable[(s2>>bsh)&bmax]));
#endif
- *dptr++ = qRgb(qRed(gammatable[(s>>rsh)&rmax]),qGreen(gammatable[(s>>gsh)&gmax]),qBlue(gammatable[(s>>bsh)&bmax]));
- //*dptr++ = qRgb(((s>>rsh)&rmax)*255/rmax,((s>>gsh)&gmax)*255/gmax,((s>>bsh)&bmax)*255/bmax);
+ *dptr++ = tqRgb(tqRed(gammatable[(s>>rsh)&rmax]),tqGreen(gammatable[(s>>gsh)&gmax]),tqBlue(gammatable[(s>>bsh)&bmax]));
+ //*dptr++ = tqRgb(((s>>rsh)&rmax)*255/rmax,((s>>gsh)&gmax)*255/gmax,((s>>bsh)&bmax)*255/bmax);
}
}
leading = 0;