From 04e50e547f8ed2d6db996bc4816179fa962bd6b1 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 2 Sep 2023 15:50:12 +0900 Subject: Replace TQ_*Focus* and TQ_Scale* defines Signed-off-by: Michele Calgaro --- chalk/plugins/filters/levelfilter/kgradientslider.cpp | 2 +- chalk/plugins/viewplugins/colorrange/dlg_colorrange.cpp | 2 +- chalk/plugins/viewplugins/screenshot/ksnapshot.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'chalk/plugins') diff --git a/chalk/plugins/filters/levelfilter/kgradientslider.cpp b/chalk/plugins/filters/levelfilter/kgradientslider.cpp index b36e5ce9..ca5725bd 100644 --- a/chalk/plugins/filters/levelfilter/kgradientslider.cpp +++ b/chalk/plugins/filters/levelfilter/kgradientslider.cpp @@ -47,7 +47,7 @@ KGradientSlider::KGradientSlider(TQWidget *parent, const char *name, WFlags f) m_whitecursor = 255; m_gamma = 1.0; m_gammaEnabled = false; - setFocusPolicy(TQ_StrongFocus); + setFocusPolicy(TQWidget::StrongFocus); } KGradientSlider::~KGradientSlider() diff --git a/chalk/plugins/viewplugins/colorrange/dlg_colorrange.cpp b/chalk/plugins/viewplugins/colorrange/dlg_colorrange.cpp index 82748f4c..b6b52860 100644 --- a/chalk/plugins/viewplugins/colorrange/dlg_colorrange.cpp +++ b/chalk/plugins/viewplugins/colorrange/dlg_colorrange.cpp @@ -239,7 +239,7 @@ void DlgColorRange::updatePreview() TQ_INT32 x, y, w, h; m_dev->exactBounds(x, y, w, h); - TQPixmap pix = TQPixmap(m_selection->maskImage().smoothScale(350, 350, TQ_ScaleMin)); + TQPixmap pix = TQPixmap(m_selection->maskImage().smoothScale(350, 350, TQImage::ScaleMin)); m_subject->canvasController()->updateCanvas(); m_page->pixSelection->setPixmap(pix); } diff --git a/chalk/plugins/viewplugins/screenshot/ksnapshot.cpp b/chalk/plugins/viewplugins/screenshot/ksnapshot.cpp index 7fb3668f..783e2a1d 100644 --- a/chalk/plugins/viewplugins/screenshot/ksnapshot.cpp +++ b/chalk/plugins/viewplugins/screenshot/ksnapshot.cpp @@ -236,7 +236,7 @@ void KSnapshot::slotPrint() neww = newh/h*w; } - img = img.smoothScale( int(neww), int(newh), TQ_ScaleMin ); + img = img.smoothScale( int(neww), int(newh), TQImage::ScaleMin ); tqApp->processEvents(); int x = (metrics.width()-img.width())/2; -- cgit v1.2.1