Replace TQ_*Focus* and TQ_Scale* defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 5665df9602)
r14.1.x r14.1.1
Michele Calgaro 1 year ago
parent 2fa133cf6b
commit 123ea9fbbf
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -136,7 +136,7 @@ void Archive::save(Basket *basket, bool withSubBaskets, const TQString &destinat
painter.end();
TQImage previewImage = previewPixmap.convertToImage();
const int PREVIEW_SIZE = 256;
previewImage = previewImage.scale(PREVIEW_SIZE, PREVIEW_SIZE, TQ_ScaleMin);
previewImage = previewImage.scale(PREVIEW_SIZE, PREVIEW_SIZE, TQImage::ScaleMin);
previewImage.save(tempFolder + "preview.png", "PNG");
// Finaly Save to the Real Destination file:

@ -257,7 +257,7 @@ void DecoratedBasket::resetFilter()
TransparentWidget::TransparentWidget(Basket *basket)
: TQWidget(basket->viewport(), "", TQt::WNoAutoErase), m_basket(basket)
{
setFocusPolicy(TQ_NoFocus);
setFocusPolicy(TQWidget::NoFocus);
setWFlags(TQt::WNoAutoErase);
setMouseTracking(true); // To receive mouseMoveEvents
@ -1076,7 +1076,7 @@ void Basket::equalizeColumnSizes()
void Basket::enableActions()
{
Global::bnpView->enableActions();
setFocusPolicy(isLocked() ? TQ_NoFocus : TQ_StrongFocus);
setFocusPolicy(isLocked() ? TQWidget::NoFocus : TQWidget::StrongFocus);
if (isLocked())
viewport()->setCursor(TQt::ArrowCursor); // When locking, the cursor stays the last form it was
}
@ -1363,7 +1363,7 @@ Basket::Basket(TQWidget *parent, const TQString &folderName)
if (!m_folderName.endsWith("/"))
m_folderName += "/";
setFocusPolicy(TQ_StrongFocus);
setFocusPolicy(TQWidget::StrongFocus);
setWFlags(TQt::WNoAutoErase);
setDragAutoScroll(true);

@ -51,7 +51,7 @@ BasketPart::BasketPart( TQWidget *parentWidget, const char *,
m_view = new BNPView(parentWidget, "BNPViewPart", this, actionCollection(), bar);
connect(m_view, TQT_SIGNAL(setWindowCaption(const TQString &)), this, TQT_SLOT(setCaption(const TQString &)));
connect(m_view, TQT_SIGNAL(showPart()), this, TQT_SIGNAL(showPart()));
m_view->setFocusPolicy(TQ_ClickFocus);
m_view->setFocusPolicy(TQWidget::ClickFocus);
// notify the part that this is our internal widget
setWidget(m_view);

@ -796,7 +796,7 @@ void BasketTreeListView::paintEmptyArea(TQPainter *painter, const TQRect &rect)
}
}
/** We should NEVER get focus (because of TQ_NoFocus focusPolicy())
/** We should NEVER get focus (because of TQWidget::NoFocus focusPolicy())
* but TDEListView can programatically give us the focus.
* So we give it to the basket.
*/

@ -348,7 +348,7 @@ void BNPView::initialize()
m_tree->setTreeStepSize(16);
m_tree->setLineWidth(1);
m_tree->setMidLineWidth(0);
m_tree->setFocusPolicy(TQ_NoFocus);
m_tree->setFocusPolicy(TQWidget::NoFocus);
/// Configure the List View Drag and Drop:
m_tree->setDragEnabled(true);

@ -2839,7 +2839,7 @@ TQString Note::toHtml(const TQString &imageName)
image = pixmap()->convertToImage();
else
image = movie()->framePixmap().convertToImage();
image = image.smoothScale(200, 150, TQ_ScaleMin);
image = image.smoothScale(200, 150, TQImage::ScaleMin);
TQPixmap pixmap = TQPixmap(image);
TQMimeSourceFactory::defaultFactory()->setPixmap(imageName, pixmap);
return "<img src=" + imageName + ">"; ///
@ -2852,7 +2852,7 @@ TQString Note::toHtml(const TQString &imageName)
image = pixmap()->convertToImage();
else
image = movie()->framePixmap().convertToImage();
image = image.smoothScale(200, 150, TQ_ScaleMin);
image = image.smoothScale(200, 150, TQImage::ScaleMin);
TQPixmap pixmap = TQPixmap(image);
TQMimeSourceFactory::defaultFactory()->setPixmap(imageName, pixmap);
return "<img src=" + imageName + ">"; ///

@ -408,7 +408,7 @@ TQPixmap ImageContent::feedbackPixmap(int width, int height)
} else { // Scalled down
TQImage imageToScale = m_pixmap.convertToImage();
TQPixmap pmScaled;
pmScaled.convertFromImage(imageToScale./*smoothScale*/scale(width, height, TQ_ScaleMin));
pmScaled.convertFromImage(imageToScale./*smoothScale*/scale(width, height, TQImage::ScaleMin));
if (pmScaled.hasAlpha()) {
TQPixmap opaque(pmScaled.width(), pmScaled.height());
opaque.fill(note()->backgroundColor().dark(FEEDBACK_DARKING));
@ -429,7 +429,7 @@ TQPixmap AnimationContent::feedbackPixmap(int width, int height)
else { // Scalled down
TQImage imageToScale = pixmap.convertToImage();
TQPixmap pmScaled;
pmScaled.convertFromImage(imageToScale./*smoothScale*/scale(width, height, TQ_ScaleMin));
pmScaled.convertFromImage(imageToScale./*smoothScale*/scale(width, height, TQImage::ScaleMin));
return pmScaled;
}
}

Loading…
Cancel
Save