Replace TQ_*Focus* and TQ_Scale* defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 8e4ca9c216)
r14.1.x
Michele Calgaro 1 year ago
parent d89d2263c4
commit 015d47f52d
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -165,7 +165,7 @@ SQ_GLWidget::SQ_GLWidget(TQWidget *parent, const char *name) : TQGLWidget(parent
// load cursors // load cursors
setCursor(KCursor::arrowCursor()); setCursor(KCursor::arrowCursor());
setFocusPolicy(TQ_WheelFocus); setFocusPolicy(TQWidget::WheelFocus);
setAcceptDrops(true); setAcceptDrops(true);
// popup menu with image pages // 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); orig.setAlphaBuffer(true);
// return scaled image // 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 #ifndef KSQUIRREL_PART

@ -38,7 +38,7 @@ namespace SQ_Utils
enum SmoothAlgorithm { SMOOTH_NONE, SMOOTH_FAST, SMOOTH_NORMAL, SMOOTH_BEST }; enum SmoothAlgorithm { SMOOTH_NONE, SMOOTH_FAST, SMOOTH_NORMAL, SMOOTH_BEST };
TQImage scale(const TQImage& image, int width, int height, 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' * Scale given image to fit it within 'fitwithin'

@ -1878,7 +1878,7 @@ void MImageScale::mimageScaleAARGB(MImageScaleInfo *isi, unsigned int *dest,
// Imlib2/Mosfet code end // Imlib2/Mosfet code end
TQImage scale(const TQImage& image, int width, int height, 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(); 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); multi_pix = SQ_IconLoader::instance()->loadIcon("application-vnd.tde.tdemultiple", TDEIcon::Desktop, TDEIcon::SizeSmall);
setMinimumHeight(20); setMinimumHeight(20);
setFocusPolicy(TQ_WheelFocus); setFocusPolicy(TQWidget::WheelFocus);
} }
SQ_PreviewWidget::~SQ_PreviewWidget() SQ_PreviewWidget::~SQ_PreviewWidget()
@ -181,7 +181,7 @@ bool SQ_PreviewWidget::fit()
{ {
small = new TQImage(); 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; return true;

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

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

@ -191,7 +191,7 @@ void SQ_SlideShowWidget::loadImage(const TQString &_path, int _current)
if(w > width() || h > height()) if(w > width() || h > height())
{ {
small = new TQImage(); 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; delete all;
all = 0; all = 0;

@ -92,7 +92,7 @@ TQImage SQ_Utils::scaleImage(unsigned char *im, int w, int h, int fitwithin)
orig.setAlphaBuffer(true); orig.setAlphaBuffer(true);
// return scaled image // 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 #ifndef KSQUIRREL_PART

@ -38,7 +38,7 @@ namespace SQ_Utils
enum SmoothAlgorithm { SMOOTH_NONE, SMOOTH_FAST, SMOOTH_NORMAL, SMOOTH_BEST }; enum SmoothAlgorithm { SMOOTH_NONE, SMOOTH_FAST, SMOOTH_NORMAL, SMOOTH_BEST };
TQImage scale(const TQImage& image, int width, int height, 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' * Scale given image to fit it within 'fitwithin'

@ -1878,7 +1878,7 @@ void MImageScale::mimageScaleAARGB(MImageScaleInfo *isi, unsigned int *dest,
// Imlib2/Mosfet code end // Imlib2/Mosfet code end
TQImage scale(const TQImage& image, int width, int height, 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(); if( image.isNull()) return image.copy();

Loading…
Cancel
Save