From 1e5d5c92c374c8c950f01fa5aa916b3f722f98c1 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 2 Sep 2023 15:53:29 +0900 Subject: Replace TQ_*Focus* and TQ_Scale* defines Signed-off-by: Michele Calgaro --- tdehtml/html/html_formimpl.cpp | 2 +- tdehtml/rendering/render_frames.cpp | 2 +- tdehtml/rendering/render_replaced.cpp | 6 +++--- tdehtml/tdehtmlview.cpp | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'tdehtml') diff --git a/tdehtml/html/html_formimpl.cpp b/tdehtml/html/html_formimpl.cpp index b10aaba99..6fb13b75b 100644 --- a/tdehtml/html/html_formimpl.cpp +++ b/tdehtml/html/html_formimpl.cpp @@ -957,7 +957,7 @@ bool HTMLGenericFormElementImpl::isFocusable() const return false; TQWidget* widget = static_cast(m_render)->widget(); - return widget && widget->focusPolicy() >= TQ_TabFocus; + return widget && widget->focusPolicy() >= TQWidget::TabFocus; } class FocusHandleWidget : public TQWidget diff --git a/tdehtml/rendering/render_frames.cpp b/tdehtml/rendering/render_frames.cpp index 5ec96aad4..f92d0b281 100644 --- a/tdehtml/rendering/render_frames.cpp +++ b/tdehtml/rendering/render_frames.cpp @@ -634,7 +634,7 @@ void RenderPart::setWidget( TQWidget *widget ) #endif setQWidget( widget ); - widget->setFocusPolicy(TQ_WheelFocus); + widget->setFocusPolicy(TQWidget::WheelFocus); if(widget->inherits("TDEHTMLView")) connect( widget, TQT_SIGNAL( cleared() ), this, TQT_SLOT( slotViewCleared() ) ); diff --git a/tdehtml/rendering/render_replaced.cpp b/tdehtml/rendering/render_replaced.cpp index 2d991c3a2..925f800fd 100644 --- a/tdehtml/rendering/render_replaced.cpp +++ b/tdehtml/rendering/render_replaced.cpp @@ -215,8 +215,8 @@ void RenderWidget::setQWidget(TQWidget *widget) if ( (m_isTDEHTMLWidget = !strcmp(m_widget->name(), "__tdehtml")) && !::tqqt_cast(m_widget)) m_widget->setBackgroundMode( TQWidget::NoBackground ); - if (m_widget->focusPolicy() > TQ_StrongFocus) - m_widget->setFocusPolicy(TQ_StrongFocus); + if (m_widget->focusPolicy() > TQWidget::StrongFocus) + m_widget->setFocusPolicy(TQWidget::StrongFocus); // if we've already received a layout, apply the calculated space to the // widget immediately, but we have to have really been full constructed (with a non-null // style pointer). @@ -673,7 +673,7 @@ bool RenderWidget::eventFilter(TQObject* /*o*/, TQEvent* e) // currently focused. this avoids accidentally changing a select box // or something while wheeling a webpage. if (tqApp->focusWidget() != widget() && - widget()->focusPolicy() <= TQ_StrongFocus) { + widget()->focusPolicy() <= TQWidget::StrongFocus) { TQT_TQWHEELEVENT(e)->ignore(); TQApplication::sendEvent(view(), e); filtered = true; diff --git a/tdehtml/tdehtmlview.cpp b/tdehtml/tdehtmlview.cpp index f68df55c9..28a81a91f 100644 --- a/tdehtml/tdehtmlview.cpp +++ b/tdehtml/tdehtmlview.cpp @@ -546,7 +546,7 @@ void TDEHTMLView::init() d->vertPaintBuffer = new TQPixmap(10, PAINT_BUFFER_HEIGHT); if(!d->tp) d->tp = new TQPainter(); - setFocusPolicy(TQ_StrongFocus); + setFocusPolicy(TQWidget::StrongFocus); viewport()->setFocusProxy(this); _marginWidth = -1; // undefined -- cgit v1.2.1