Replace TQ_*Focus* and TQ_Scale* defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/6/head
Michele Calgaro 9 months ago
parent 0dfbcfeaab
commit ad5ba758d5
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -1217,7 +1217,7 @@ void MainWindow::createLocationToolBar() {
mURLEdit->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed);
// Avoid stealing focus
mURLEdit->setFocusPolicy(TQ_ClickFocus);
mURLEdit->setFocusPolicy(TQWidget::ClickFocus);
mURLEditCompletion=new KURLCompletion();

@ -94,7 +94,7 @@ TQString DocumentJPEGLoadedImpl::localSave(TQFile* file, const TQCString& format
d->mJPEGContent.resetOrientation();
if (!d->mJPEGContent.thumbnail().isNull()) {
d->mJPEGContent.setThumbnail( ImageUtils::scale(
mDocument->image(), 128, 128, ImageUtils::SMOOTH_FAST, TQ_ScaleMin));
mDocument->image(), 128, 128, ImageUtils::SMOOTH_FAST, TQImage::ScaleMin));
}
LOG("JPEG Lossless save");

@ -810,7 +810,7 @@ void FileThumbnailView::startDrag() {
}
TQImage img = pix->convertToImage();
img = img.smoothScale(size, TQ_ScaleMin);
img = img.smoothScale(size, TQImage::ScaleMin);
painter->drawImage(left, top, img);
}

@ -311,7 +311,7 @@ ImageView::ImageView(TQWidget* parent,Document* document, TDEActionCollection* a
d->mContrast = 100;
d->mBCGDialog = 0;
viewport()->setFocusPolicy(TQ_WheelFocus);
viewport()->setFocusPolicy(TQWidget::WheelFocus);
setFrameStyle(NoFrame);
setAcceptDrops( true );
viewport()->setAcceptDrops( true );
@ -348,7 +348,7 @@ ImageView::ImageView(TQWidget* parent,Document* document, TDEActionCollection* a
d->mZoomCombo=new TQComboBox(true);
// Avoid stealing focus
d->mZoomCombo->setFocusPolicy(TQ_ClickFocus);
d->mZoomCombo->setFocusPolicy(TQWidget::ClickFocus);
connect(d->mZoomCombo, TQT_SIGNAL(activated(int)),
TQT_TQOBJECT(this), TQT_SLOT(slotSelectZoom()) );

@ -169,7 +169,7 @@ void ThumbnailThread::loadThumbnail() {
mImage=originalImage;
needCaching = false;
} else {
mImage=ImageUtils::scale(originalImage,thumbSize,thumbSize,ImageUtils::SMOOTH_FAST,TQ_ScaleMin);
mImage=ImageUtils::scale(originalImage,thumbSize,thumbSize,ImageUtils::SMOOTH_FAST,TQImage::ScaleMin);
}
loaded = true;
}
@ -741,7 +741,7 @@ void ThumbnailLoadJob::emitThumbnailLoaded(const TQImage& img, TQSize size) {
TQImage thumbImg;
if (biggestDimension>mThumbnailSize) {
// Scale down thumbnail if necessary
thumbImg=ImageUtils::scale(img,mThumbnailSize, mThumbnailSize, ImageUtils::SMOOTH_FAST,TQ_ScaleMin);
thumbImg=ImageUtils::scale(img,mThumbnailSize, mThumbnailSize, ImageUtils::SMOOTH_FAST,TQImage::ScaleMin);
} else {
thumbImg=img;
}

@ -69,7 +69,7 @@ GVDirPart::GVDirPart(TQWidget* parentWidget, const char* /*widgetName*/, TQObjec
mBrowserExtension = new GVDirPartBrowserExtension(this);
mSplitter = new TQSplitter(Qt::Horizontal, parentWidget, "gwenview-kpart-splitter");
mSplitter->setFocusPolicy(TQ_ClickFocus);
mSplitter->setFocusPolicy(TQWidget::ClickFocus);
mSplitter->setOpaqueResize(true);
// Create the widgets

@ -30,7 +30,7 @@ namespace ImageUtils {
enum SmoothAlgorithm { SMOOTH_NONE, SMOOTH_FAST, SMOOTH_NORMAL, SMOOTH_BEST };
TQImage scale(const TQImage& image, int width, int height,
SmoothAlgorithm alg, TQ_ScaleMode mode = TQ_ScaleFree, double blur = 1.0);
SmoothAlgorithm alg, TQImage::ScaleMode mode = TQImage::ScaleFree, double blur = 1.0);
int extraScalePixels( SmoothAlgorithm alg, double zoom, double blur = 1.0 );

@ -1924,7 +1924,7 @@ int extraScalePixels( SmoothAlgorithm alg, double zoom, double blur )
}
TQImage scale(const TQImage& image, int width, int height,
SmoothAlgorithm alg, TQ_ScaleMode mode, double blur )
SmoothAlgorithm alg, TQImage::ScaleMode mode, double blur )
{
if( image.isNull()) return image.copy();

Loading…
Cancel
Save