Replace TQ_*Focus* and TQ_Scale* defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/9/head
Michele Calgaro 1 year ago
parent 557dd899e6
commit 8e4ca9c216
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -165,7 +165,7 @@ SQ_GLWidget::SQ_GLWidget(TQWidget *parent, const char *name) : TQGLWidget(parent
// load cursors
setCursor(KCursor::arrowCursor());
setFocusPolicy(TQ_WheelFocus);
setFocusPolicy(TQWidget::WheelFocus);
setAcceptDrops(true);
// popup menu with image pages

@ -92,7 +92,7 @@ TQImage SQ_Utils::scaleImage(unsigned char *im, int w, int h, int fitwithin)
orig.setAlphaBuffer(true);
// return scaled image
return SQ_Utils::scale(orig, fitwithin, fitwithin, SQ_Utils::SMOOTH_FAST, TQ_ScaleMin);
return SQ_Utils::scale(orig, fitwithin, fitwithin, SQ_Utils::SMOOTH_FAST, TQImage::ScaleMin);
}
#ifndef KSQUIRREL_PART

@ -38,7 +38,7 @@ namespace SQ_Utils
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);
/*
* Scale given image to fit it within 'fitwithin'

@ -1878,7 +1878,7 @@ void MImageScale::mimageScaleAARGB(MImageScaleInfo *isi, unsigned int *dest,
// Imlib2/Mosfet code end
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();

@ -73,7 +73,7 @@ SQ_PreviewWidget::SQ_PreviewWidget(TQWidget *parent, const char *name)
multi_pix = SQ_IconLoader::instance()->loadIcon("application-vnd.tde.tdemultiple", TDEIcon::Desktop, TDEIcon::SizeSmall);
setMinimumHeight(20);
setFocusPolicy(TQ_WheelFocus);
setFocusPolicy(TQWidget::WheelFocus);
}
SQ_PreviewWidget::~SQ_PreviewWidget()
@ -181,7 +181,7 @@ bool SQ_PreviewWidget::fit()
{
small = new TQImage();
*small = SQ_Utils::scale(*all, width(), height(), SQ_Utils::SMOOTH_FAST, TQ_ScaleMin);
*small = SQ_Utils::scale(*all, width(), height(), SQ_Utils::SMOOTH_FAST, TQImage::ScaleMin);
}
return true;

@ -75,7 +75,7 @@ void SQ_GLView::createContent()
m_tabbar->setHoverCloseButton(m_tabsclose);
m_tabbar->setHoverCloseButtonDelayed(false);
m_tabbar->setMouseTracking(true);
m_tabbar->setFocusPolicy(TQ_NoFocus);
m_tabbar->setFocusPolicy(TQWidget::NoFocus);
box->setStretchFactor(m_toolbar, 1);

@ -165,7 +165,7 @@ SQ_GLWidget::SQ_GLWidget(TQWidget *parent, const char *name) : TQGLWidget(parent
// load cursors
setCursor(KCursor::arrowCursor());
setFocusPolicy(TQ_WheelFocus);
setFocusPolicy(TQWidget::WheelFocus);
setAcceptDrops(true);
// popup menu with image pages

@ -191,7 +191,7 @@ void SQ_SlideShowWidget::loadImage(const TQString &_path, int _current)
if(w > width() || h > height())
{
small = new TQImage();
*small = SQ_Utils::scale(*all, width(), height(), SQ_Utils::SMOOTH_FAST, TQ_ScaleMin);
*small = SQ_Utils::scale(*all, width(), height(), SQ_Utils::SMOOTH_FAST, TQImage::ScaleMin);
delete all;
all = 0;

@ -92,7 +92,7 @@ TQImage SQ_Utils::scaleImage(unsigned char *im, int w, int h, int fitwithin)
orig.setAlphaBuffer(true);
// return scaled image
return SQ_Utils::scale(orig, fitwithin, fitwithin, SQ_Utils::SMOOTH_FAST, TQ_ScaleMin);
return SQ_Utils::scale(orig, fitwithin, fitwithin, SQ_Utils::SMOOTH_FAST, TQImage::ScaleMin);
}
#ifndef KSQUIRREL_PART

@ -38,7 +38,7 @@ namespace SQ_Utils
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);
/*
* Scale given image to fit it within 'fitwithin'

@ -1878,7 +1878,7 @@ void MImageScale::mimageScaleAARGB(MImageScaleInfo *isi, unsigned int *dest,
// Imlib2/Mosfet code end
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