summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/fitsimage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kstars/kstars/fitsimage.cpp')
-rw-r--r--kstars/kstars/fitsimage.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kstars/kstars/fitsimage.cpp b/kstars/kstars/fitsimage.cpp
index d5d5ce3c..226cc74a 100644
--- a/kstars/kstars/fitsimage.cpp
+++ b/kstars/kstars/fitsimage.cpp
@@ -52,7 +52,7 @@
/* Load info */
typedef struct
{
- uint replace; /* replacement for blank/NaN-values */
+ uint tqreplace; /* replacement for blank/NaN-values */
uint use_datamin;/* Use DATAMIN/MAX-scaling if possible */
uint compose; /* compose images with naxis==3 */
} FITSLoadVals;
@@ -64,9 +64,9 @@ static FITSLoadVals plvals =
0 /* Dont compose images */
};
-FITSImage::FITSImage(TQWidget * parent, const char * name) : TQScrollView(parent, name), zoomFactor(1.2)
+FITSImage::FITSImage(TQWidget * tqparent, const char * name) : TQScrollView(tqparent, name), zoomFactor(1.2)
{
- viewer = (FITSViewer *) parent;
+ viewer = (FITSViewer *) tqparent;
reducedImgBuffer = NULL;
displayImage = NULL;
@@ -74,9 +74,9 @@ FITSImage::FITSImage(TQWidget * parent, const char * name) : TQScrollView(parent
addChild(imgFrame);
currentZoom = 0.0;
- grayTable=new QRgb[256];
+ grayTable=new TQRgb[256];
for (int i=0;i<256;i++)
- grayTable[i]=qRgb(i,i,i);
+ grayTable[i]=tqRgb(i,i,i);
viewport()->setMouseTracking(true);
imgFrame->setMouseTracking(true);
@@ -161,14 +161,14 @@ void FITSImage::contentsMouseMoveEvent ( TQMouseEvent * e )
if (validPoint)
{
- viewer->statusBar()->changeItem(TQString("%1 , %2").arg( (int) x).arg( (int) y), 0);
+ viewer->statusBar()->changeItem(TQString("%1 , %2").tqarg( (int) x).tqarg( (int) y), 0);
viewer->statusBar()->changeItem( KGlobal::locale()->formatNumber( viewer->imgBuffer[(int) (y * width + x)], 3 ), 1 );
- setCursor(Qt::CrossCursor);
+ setCursor(TQt::CrossCursor);
}
else
{
//viewer->statusBar()->changeItem(TQString("(X,Y)"), 0);
- setCursor(Qt::ArrowCursor);
+ setCursor(TQt::ArrowCursor);
}
}
@@ -299,7 +299,7 @@ int FITSImage::loadFits (const char *filename)
}
trans.datamin = 0.0;
trans.datamax = 255.0;
- trans.replacement = plvals.replace;
+ trans.replacement = plvals.tqreplace;
trans.dsttyp = 'c';
//displayImage->create(width, height, 32);
@@ -338,7 +338,7 @@ int FITSImage::loadFits (const char *filename)
//for (j=0; j < width; j++)
//{
//val = dest[j];
- //displayImage->setPixel(j, i, qRgb(val, val, val));
+ //displayImage->setPixel(j, i, tqRgb(val, val, val));
//}
for (j = 0 ; j < width; j++)
displayImage->setPixel(j, i, dest[j]);
@@ -459,7 +459,7 @@ void FITSImage::fitsZoomDefault()
}
-FITSFrame::FITSFrame(FITSImage * img, TQWidget * parent, const char * name) : TQFrame(parent, name, Qt::WNoAutoErase)
+FITSFrame::FITSFrame(FITSImage * img, TQWidget * tqparent, const char * name) : TQFrame(tqparent, name, TQt::WNoAutoErase)
{
image = img;
setPaletteBackgroundColor(image->viewport()->paletteBackgroundColor());