diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-09-02 15:53:29 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-09-02 15:53:29 +0900 |
commit | 1e5d5c92c374c8c950f01fa5aa916b3f722f98c1 (patch) | |
tree | f8538d6a34bf4683fdb8e2ed33923406b1659c09 /tdehtml | |
parent | 34632650f1a323bdb5a0bbb0f504e3db70d87330 (diff) | |
download | tdelibs-1e5d5c92c374c8c950f01fa5aa916b3f722f98c1.tar.gz tdelibs-1e5d5c92c374c8c950f01fa5aa916b3f722f98c1.zip |
Replace TQ_*Focus* and TQ_Scale* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdehtml')
-rw-r--r-- | tdehtml/html/html_formimpl.cpp | 2 | ||||
-rw-r--r-- | tdehtml/rendering/render_frames.cpp | 2 | ||||
-rw-r--r-- | tdehtml/rendering/render_replaced.cpp | 6 | ||||
-rw-r--r-- | tdehtml/tdehtmlview.cpp | 2 |
4 files changed, 6 insertions, 6 deletions
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<RenderWidget*>(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<TQFrame*>(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 |